whoahorse Posted April 19, 2005 Posted April 19, 2005 Does anyone know the coding to this? I'd like people to see this when they come to a broken link at my photo website. Thanks! Weezy Quote
TCH-Thomas Posted April 19, 2005 Posted April 19, 2005 Hi Weezy, If I understand you correct, you will need to make a normal html page and then add this to your .htaccess ErrorDocument 404 http://www.tch-hosted-domain.com/yourerrorpage.html Quote
Beltza Posted April 19, 2005 Posted April 19, 2005 Almost correct. Better is: >ErrorDocument 404 yourerrorpage.html If you specify a domain name for the error document, the web server will always redirect you to the error page, and thus effectively return error 301 instead of 404. Quote
whoahorse Posted April 19, 2005 Author Posted April 19, 2005 # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName www.hoofprints.ca AuthUserFile /home/photos/public_html/_vti_pvt/service.pwd AuthGroupFile /home/photos/public_html/_vti_pvt/service.grp ------------------------------ Above is my .htaccess file, where do I enter that info? Thanks for all your help guys! Weezy Quote
TCH-Thomas Posted April 19, 2005 Posted April 19, 2005 Almost correct. Better is: >ErrorDocument 404 yourerrorpage.html If you specify a domain name for the error document, the web server will always redirect you to the error page, and thus effectively return error 301 instead of 404. Thanks. Now I learned something new. Quote
TCH-Dick Posted April 19, 2005 Posted April 19, 2005 On TCH servers just create your error pages with the extension .shtml e.g. 404.shtml, 301.shtml and the user will be redirected to the proper page. The only issue you might have is with subdomains. If you do you can just drop a copy of your error pages in that directory. Quote
whoahorse Posted April 19, 2005 Author Posted April 19, 2005 (edited) YAY IT WORKED - THANKS!!!!!!! Is there any other numbered error pages I should make? THAT IS PERFECT for what I needed Dick! Weezy Edited April 19, 2005 by whoahorse Quote
TweezerMan Posted April 20, 2005 Posted April 20, 2005 I have error pages for 403, 404, and 500 errors - that ought to cover most of the errrors that your readers might see. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.