View Full Version : Whats a good redirecting code?

10-15-2005, 05:06 AM
What's the code i can use to redirect to another page?

Philip M
10-15-2005, 09:11 AM
<meta http-equiv="REFRESH" content="0; URL=http://www.myotherpage.com">

If you want a delay replace 0 by the number of seconds delay required.

10-15-2005, 11:18 PM
Better yet if your site is running on Apache add the redirect into the .htaccess file so that the old page doesn't have to exist at all.

Redirect /olddir/odfile.html http://yoursite.com/newdir/newfile.html