Facebook

How can I automatically redirect a visitor from one page to another page in my site?

You may have seen web pages that display a message such as “This page has moved, please wait while you are redirected to the new page.” Within a few seconds, your browser automatically displays the new page. This effect can be created using the “meta refresh” tag.

To duplicate this type of redirection, you simply need to include a refresh tag in the header of your HTML code. An example of a refresh tag looks like this:

<META HTTP-EQUIV=”refresh” CONTENT=”5;URL=http://www.yoursite.com/page.html”>

The “5” in the tag indicates the number of seconds the page will delay before it automatically redirects you to the new page. This number can be adjusted to a longer or shorter time limit. Providing a longer delay time will allow visitors to read a message shown on the page before their browser refreshes.

The URL indicated represents the location of the page you want the visitor to be directed to (the new page). This can be a URL in your own web site, or it can be the URL of a different web site.

You can also use the Redirects feature in your cPanel. First go to the Redirects interface under the DOMAINS banner. Once you are on this page,  you will then need to click on the Type drop-down box to select what type of redirect you want, and choose if you want to create a Permanent (301) or Temporary redirect. The next dropdown box will then ask what domain you wish to redirect, and you can add any folder names if necessary. In the Redirects to field, enter the address you want to redirect to. You will then choose if you want to “Only redirect with www.” “Redirect with or without www.” or “Do Not Redirect www.” You can check the box if you want to create a Wild Card Redirect. This will add the file/folder name after the url when it redirects. For instance, domain.com/test.html would redirect to domain2.com/test.html
After you have made your choices, you will then click the Add button, and your redirect will have been made.