Forum Moderators: phranque

Message Too Old, No Replies

separate 404 pages and htaccess files for subdomain

subdomain

         

benevolent001

3:07 pm on Dec 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi i made 404 400 500 and other pages for my main domain and also placed htaccess file for the required permissions...i wanted to if i need separate files for the other subdomains ...preseltly when i try to open unknown file in main domain it gives 404 page which i made but when i try this in subdomains it gives default..page cannot be found...

does it need separate htaccess files too

Regards

jdMorgan

5:37 pm on Dec 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I think you'll need an .htaccess file in each subdomain's subdirectory, specifiying its unique ErrorDocument.

You can do this "centrally" in httpd.conf if you have access to the server configuration.

Jim

benevolent001

5:42 pm on Dec 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Jim
Thanks a lot

I wish i knew about apache as much you know...from where you learned all this stuff...

what about 404 etc error pages i made will i need them i all folders ...

thanks once again

Lorel

7:11 pm on Dec 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have a somewhat similar problem except my files were in a directory I deleted and the bad url now opens a 404 error "file not found" and goes to my missing page which I have set up with links to my site. However, Google still thinks those pages are online.

How do I set up my .htaccess file so it does not refer those pages to the file not found page so google will drop them from it's index? I can't submit those pages to google's dead url link because that link gets redirected to my 404/missing page and it thinks the page is still there.