airy
12-14-05, 04:45 PM
(I know these have been discussed before and Ive read thru many threads about this but decided to ask myself)
I have a Serviced Domain working with my main site...
My Serviced domain is in a directory under htdocs
Main Domain: htdocs/
Servied Domain: htdocs/newsite
Question is:
How do I get a different 404 error page for my newsite serviced domain? What .htaccess code do I need to use so I have 2 different error pages (1 for each site)
My current .htaccess code:
<Files .htaccess>
order allow,deny
deny from all
</Files>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} newsite.com
RewriteCond %{REQUEST_URI} !newsite/
RewriteRule ^(.*)$ newsite/$1 [L]
ErrorDocument 403 /errorpage.html
ErrorDocument 404 /errorpage.html
ErrorDocument 500 /errorpage.html
Also, If I have a cgi mail form in the serviced domains site, do I have to anything specific to have it work like it was its own domain? or is it automaticly know to use the main roots cgi-bin without having to include my main domains url in the forms code!?
This all make sense!?
thank you 4 ur help ;)
I have a Serviced Domain working with my main site...
My Serviced domain is in a directory under htdocs
Main Domain: htdocs/
Servied Domain: htdocs/newsite
Question is:
How do I get a different 404 error page for my newsite serviced domain? What .htaccess code do I need to use so I have 2 different error pages (1 for each site)
My current .htaccess code:
<Files .htaccess>
order allow,deny
deny from all
</Files>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} newsite.com
RewriteCond %{REQUEST_URI} !newsite/
RewriteRule ^(.*)$ newsite/$1 [L]
ErrorDocument 403 /errorpage.html
ErrorDocument 404 /errorpage.html
ErrorDocument 500 /errorpage.html
Also, If I have a cgi mail form in the serviced domains site, do I have to anything specific to have it work like it was its own domain? or is it automaticly know to use the main roots cgi-bin without having to include my main domains url in the forms code!?
This all make sense!?
thank you 4 ur help ;)