Home »
General »
PHP discussions »
Creating Simple Redirect links
|
Re: Creating Simple Redirect links [message #34013 is a reply to message #33674] |
Sun, 01 October 2006 15:46 |
streety
Messages: 5 Registered: October 2006
Karma: 0
|
Junior Member |
|
|
I'm not entirely sure I know what your aim is. Are you trying to create a system that will allow you to post a link to
www.yoursite.com/cheap-widgets
and have it redirect the visitor to
www.cheap-widgets.com/?referrer-id=your_ref_id
If so you can just insert the following into a file
<?php
header("Location: www.cheap-widgets.com/?referrer-id=your_ref_id");
?>
Presumably you'll want to have some sort of tracking so you can record how many people have visited the page and been re-directed but that is a seperate issue.
|
|
|
Goto Forum:
Current Time: Mon Nov 25 19:18:42 GMT 2024
Total time taken to generate the page: 0.02488 seconds