Wednesday, June 30, 2010

How to Re-direct from an old web page to a new page

Example: I needed to redirect users of our old web pages to our new pages.

Issues: I tried .htaccess but kept having server errors. PHP also produced the same server errors. I even tried adding the code above the !DOC file but that killed the links to the CSS files. Finally I tried a simple javascript and it worked.

I had to place the script near the top of the page.

See the image below as to where the javascript code was placed. The code is in RED.