PDA

View Full Version : Webpage redirect



Derek
08-16-2003, 06:10 PM
Hi

If someone brings up webpage/site:<font color=green> www.mydomain.com</font color=green>

- but is then redirected to:<font color=purple> www.microsoft.com</font color=purple> using:
<meta **********="refresh" content="3;URL=http://www.microsoft.com/">

... the URL stays as <font color=green>www.mydmain.com</font color=green>

Anybody know how I can get the URL to change to <font color=purple> www.microsoft.com</font color=purple> ?

I've had a look around but cant fiind anything. This is not part of AMS, its a general browser Q?

Thanx /ubbthreads/images/icons/smile.gif

Corey
08-16-2003, 07:02 PM
Best is server side. If you have PHP use this by deleting all index pages and then saving this as index.php in your directory...

<?php
header ("Location: http://www.yourlink.com");
?>

This is a true re-direct because it happens before their browser views the page instead of after, it's what we use here at IR... Make sure there's no whitespace on your page before this PHP code gets executed or you'll get a "header already sent" error.

If you don't have PHP, ASP has an equivalent tag as does Perl or any other server side language.

Here's an example, cut and paste this into your browser then watch what happens to the URL as you press GO.

http://www.indigorose.com/products/autoplay_menu_studio1.php

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Derek
08-18-2003, 09:50 AM
Thanx Corey /ubbthreads/images/icons/smile.gif