Re-directing website code

  phlomis2 13:25 18 Apr 2008
Locked

I am using the following code to re-direct from one website (no domain name) to another with a domain name:

html> head> META HTTP-EQUIV="refresh" CONTENT="3;URL=click here"> /head>
body>The site has been moved to click here You will be taken there automatically. /body>
/body> /html>

Unfortunately that only works for the basic home address (click here) not the 2,600 pages I had on the site. How does one write the code so that whatever page people go to (like click here ) they get re-directed?
Thanks.

  Kemistri 21:10 19 Apr 2008

You should use PHP for this.

Google for "PHP redirect" or similar.

  phlomis2 12:36 21 Apr 2008

That didn't work, presumably as my site is not a PHP site. Anyone else with ideas?

  Kemistri 12:58 21 Apr 2008

Well that's how you this. With PHP. Unless you want to edit every page to add a JS redirect, which not only is a pain in the backside for you, but will not work for every visitor or search engines.

  Kemistri 13:00 21 Apr 2008

And it's a pretty poor host that doesn't support PHP scripts.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Fujitsu Lifebook P727 laptop review

Converse draws on iconic heritage for a fresh brand identity

Mac power user tips and hidden tricks

Comment lancer Windows 10 en mode sans ├ęchec ?