English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm creating this website and I would like it done i a way that, when a visitor encounters an error, maybe a page that doesn't exist, or an invalid link, the visitor sees a page that I created explaining the possible errors Instead of the normal "The Page Cannot Be Found" that most windows users are thoroughly accustomed to.

2007-07-02 23:56:52 · 4 answers · asked by croccifixio 2 in Computers & Internet Programming & Design

4 answers

If you can create a .htaccess file then you can use the following directives
ErrorDocument 500 http://foo.example.com/cgi-bin/tester
ErrorDocument 404 /cgi-bin/bad_urls.pl
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today"

Search google for .htaccess
There is a dot in front of htaccess!

2007-07-03 00:06:11 · answer #1 · answered by AnalProgrammer 7 · 0 0

Unless the site is on a PhP server host that you have admin rights to that isnt going happen

However if its your website test the links and fix your typos
that way there are no errors

2007-07-03 00:01:26 · answer #2 · answered by Anonymous · 0 0

Had the comparable subject following the main modern-day Steam mega-replace, and all i might desire to locate substitute into the registry get entry to restoration that wasn't a subject. Deleting that record looks to have fixed it! thank you! It substitute into placed at C:software FilesSteamsteam.dll for me.

2016-11-08 00:58:00 · answer #3 · answered by weberg 4 · 0 0

Hi,
If you are developing asp.net website you can set in web.config file in customerrors else if you are using php you can set in .htaccess.

2007-07-03 01:46:32 · answer #4 · answered by benaya p 1 · 0 0

fedest.com, questions and answers