FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Auto redirect your visitors to a different page
Choosing Between Free or Paid Web Hosting
Sub domains and add-on domains
how can i have 2 sets of error pages
Sub-Domains
Displaying A Default Page Not Found.
General .htaccess tutorial.
Design a 404 page for 100frih -- Done--
help editing 404.shtml
how to edit my 404 error page?
Resolved: Fake' sub domains?
Two sub-domains?
subdomain
Pointing a domain I bought to one of my Sub-domains.
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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