|
|
|
|
|
|
|
![]() |
#1 |
Shut up brain, or I'll stab you with a Q-tip!
|
Using php redirects for sponsor links
I wanted to setup some php redirects for sponsor links but can't seem to get it working. Can anyone lend me a hand?
I've put this in a .php file Code:
<?php header(’Location: http://www.link.com/') ; ?> What am I doing wrong or is there another way to do this? This ofcourse will not track anything but just function as a simple redirect. Are there any scripts out there that can actually track hits but still make links like domain.com/go/paysitename.php ? Any help will be appreciated. |
![]() |
![]() |
![]() |
#2 |
If there is nobody out there, that's a lot of real estate going to waste!
Join Date: Dec 2003
Posts: 2,177
|
I generally load the link(random) to a variable first.
PHP Code:
|
![]() |
![]() |
![]() |
#3 | |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
Quote:
Should be either an apostrophe ( ' ) or a quotation mark ( " ), just as long as they are the same. As far as scripts go, you can do what you are already doing or use .htaccess: Assuming you own the site 'http://www.yoursite.com/' If you want to link to 'Paysite Name', create a link on your site to point to http://www.yoursite.com/paysitename/ Utilising your current method would be to make a folder called 'paysitename'. In the folder you would put an 'index.php' file with the following single line PHP Code:
Code:
RewriteRule ^paysitename/? http://www.paysite.com/trackingurl.html [L,R] HTH ~Steve
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
|
![]() |
![]() |
![]() |
|
|