I have changed mulitple file names and would like to know how set-up 404 redirect to the new names.
Thanks for your assistance.
I have changed mulitple file names and would like to know how set-up 404 redirect to the new names.
Thanks for your assistance.
Your control panel may offer you the option of creating custom error pages. If not and if you are using a *nix box you can use an htaccess file for the redirection.
ErrorDocument 404 /404.php or htm or html or shtml
ErrorDocument 403 /403.php or htm or html or shtml
ErrorDocument 500 /500.php or htm or html or shtml
If you already have an .htaccess file just add the code above then upload it to your root directory.
If you don't have an htaccess file then create one with a text editor using the code above and upload it to your root directory.
Hope this helps.
Rick
As Rick said, if you are looking for a way to redirect errors to a custom error page, that's the way to do it:
ErrorDocument 404 /customerrorfilename.htm
Did you mean to ask how to redirect from an old filename to a new filename? If so, you can also do that in that same .htaccess file --
Redirect /oldname.htm http://www.yoursite.com/newname.htm
although that's not the only way to do it... you can also use a "meta refresh" tag in the <HEAD> section of your page:
<META HTTP-EQUIV="REFRESH" CONTENT="10;
URL=http://www.newsite.com/newpage.htm">
Thanks for answering my question.