shane.carr
07-03-2006, 04:08 AM
How would I create a different 404 error page for a certain directory if there is a main one already set?
i.e:
.htaccess :
ErrorDocument 404 /404.html
It works fine, but how would I make a different one for say the directory foo?
EDIT:
The main 404 error page would remain for ALL OTHER DIRECTORIES except foo. For example, http://www.example.com/ahjdslfdhajskl would show the main 404 error page as well as http://www.example.com/bar/hkdfjsaafkdhj. HOWEVER, http://www.example.com/foo/jhkdsafhjkhjkdfsa would show a different error page.
i.e:
.htaccess :
ErrorDocument 404 /404.html
It works fine, but how would I make a different one for say the directory foo?
EDIT:
The main 404 error page would remain for ALL OTHER DIRECTORIES except foo. For example, http://www.example.com/ahjdslfdhajskl would show the main 404 error page as well as http://www.example.com/bar/hkdfjsaafkdhj. HOWEVER, http://www.example.com/foo/jhkdsafhjkhjkdfsa would show a different error page.