cancel
Showing results for 
Search instead for 
Did you mean: 

Webpage redirection

N/A

Webpage redirection

Hi

I've recently transfered in my domain (say test.co.uk) from another host to Force 9. Previously, someone set up some form of web forwarding/redirection so that when someone visits test.co.uk it automatically redirects to another website (say madeup.co.uk/test). Since I've transfered into F9 this forwarding has been lost.
How can I set this back up again?

Cheers
2 REPLIES
N/A

Webpage redirection

I can think of three different methods (the last two are seen as "kludges" in some circles because of their potential to mess up the correct operation of the "back" key on the user's browser):[list=1]
  • Use a .htaccess file with a Redirect statement. See the .htaccess tutorial. For example:

      Redirect /index.html http://madeup.co.uk/test/index.html


  • Use a <meta> element within the <head> element in the document's html markup. For example:

      <meta http-equiv="refresh" content="1;url=http://madeup.co.uk/index.html" />

    (The number in the content attribute is the delay in seconds before going to the new page.)


  • Use a scripting language to change the browser's location. For example:

      <script language="JavaScript" type="text/javascript">
        window.top.location.href="http://madeup.co.uk/index.html";
      </script>

    (Not only does this method potentially interfere with correct operation of the "back" button on the browser, it also requires the browser to have JavaScript enabled.)
    [/listShocked]
  • N/A

    Webpage redirection

    Cheers for the info,
    The .htaccess method worked a treat Cheesy