Redirect a Web Page
Task:
I have an old page that everyone links to and I want to forward them to my new page.
How to do it:
Using a simple META Refresh tag, you can automatically forward someone's web browser to your new page.
Note: If your web site is not on your Auburn account, you can use this to forward people who find your Auburn web space from the University Directory.
Follow these steps:
- Open the web page that you want to forward from in an HTML editor.
- Switch the view of the HTML editor so that you can edit the HTML of the page.
- At the top of the code, find the lines for <HEAD> ... </HEAD>.
- Place the below code somewhere between these two statements.
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://www.auburn.edu/~username/filename.html">
Note: The method of redirecting will break the back button, forcing a visitor to press it twice to return from your new page to the previous page.
Note: Optionally, you can put a message that says something like "My page has moved to a new location. You will be forwarded there in 5 seconds."
- Change username to your AU User Name and filename.html to the name of the page that you want to forward your visitors to.
- Change the time interval to your liking by changing the value for CONTENT. By default, your visitor will be forwarded in 5 seconds.
You can set the time interval to "0" for an instant forward.
How-to: Redirect files and directories
