Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect Question

Status
Not open for further replies.
An easy suggestion would be to replace the default 404 error file on your server with your own custom one.

Then, either use a meta refresh tag in the header or a javascript document.location page switch. (Or both, which I am prone to do if I want the switch to be immediate and want to make SURE that it happens.)


Hope that helps.
 
thank you, Guru

Is there any way to do it without replacing the default 404 error file?
 
Depending what server you are running.

With Apache, you can set up an .htaccess file to tell the server which page to load if it can't find the one requested.

With IIS you can tell the server which page to use in the IIS services control panel thing.

Neither requires you to actually overwrite the default 404 page.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top