FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Custom 404 not found file for sub domains....

 


internetjobs
Hi,
I am having issue with setting custom 404 Page not found settings..
I need a different 404 page for different sub domains..
currently i have 2 sub domains, both are showing the original 404 which i kept in the main domain.. where to modify for 404 page in the sub domain...
guissmo
Is there a way for this? I was supposed to make a new topic but I guess bring thing up would do.
Can anyone answer this? Smile
cr3ativ3
To define which custom 404 page to display based on the directory+subdirectories, you use a .htaccess file.

The following code you would place a .htaccess file in the folder you want custom 404's to display for.

Code:
ErrorDocument 404 ./custom404.html


Thats it now just create a custom404.html file in the same directory as the .htaccess file and you should have a custom 404 page.

Here is a file structure for a subdomain application of a .htaccess file:

Code:
/public_html/subdomain1/.htaccess
/public_html/subdomain1/custom404.html


Hope this helps.
Related topics

Sub domains and add-on domains
General .htaccess tutorial.
Resolved: Fake' sub domains?
Displaying A Default Page Not Found.
Design a 404 page for 100frih -- Done--

help editing 404.shtml
how to edit my 404 error page?
Auto redirect your visitors to a different page
Choosing Between Free or Paid Web Hosting
how can i have 2 sets of error pages

Sub-Domains
Sub domain
How come we can change our sub-domains thru DA on S2 now?
How to set Custom 404 page in Directadmin
Hey everyone!
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.