Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-08-01, 08:58 AM   #1
CelticTiger
Are you sure this is the Sci-Fi Convention? It's full of nerds!
 
CelticTiger's Avatar
 
Join Date: Feb 2004
Location: Ireland
Posts: 266
Send a message via ICQ to CelticTiger
It's not really necessary to go as far as using mod_rewrite in your .htaccess

Here's the code I like to use:
PHP Code:
<?php
switch($_GET['id'])
{
case(
'1'):
$location 'sponsor url here';
break;
case(
'2'):
$location 'sponsor url here';
break;
case(
'3'):
$location 'sponsor url here';
break;
default:
echo 
'Error: No ID Specified';
exit;
break;
}
header('Location: ' $location);
?>
Save as links.php or whatever you wish. Using categories like amateur-links.php for your amateur links etc is also helpful in keeping things organized. You can add more links as required by simply adding in :

PHP Code:
case('4'):
$location 'sponsor url here';
break; 
before the code
PHP Code:
default:
echo 
'Error: No ID Specified';
exit;
break; 
Just make sure you change the case numbers.


Upload the file to your server and
now you simply use: "links.php?id=1" ie

http://www.domain.com/links.php?id=1 where the id=1 represents
PHP Code:
case('1'):
$location 'sponsor url here'
Now for example if the sponsor/site in
PHP Code:
case('1'):
$location 'sponsor url here'
is performing badly or the sponsor goes under you can simply change the url to something else and your traffic is rerouted to another site.

Hope this helps.
CelticTiger is offline   Reply With Quote
Old 2005-08-01, 10:08 AM   #2
Halfdeck
You can now put whatever you want in this space :)
 
Halfdeck's Avatar
 
Join Date: Oct 2004
Location: New Haven, CT
Posts: 985
Send a message via ICQ to Halfdeck
It's not necessary to use mod rewrite, but I like it I prefer "http://www.domain.com/go/bilfhunter/" over "http://www.domain.com/link.php?id=2" because it slightly improves ranking for the link.php page in G (although granted sponsor tour pages don't really rank well at all usually) and it's more inviting for surfers to click, imo. Of course you can use mouseovers too, but I prefer "http://www.domain.com/visit/bilfhunter/" to show instead of "http://www.bilfhunter.com/."

Also, there's nothing wrong with the switch/case setup, but I have sites that use 2000+ paysite links, and for those, I prefer just having one php file with 2 lines of code.
__________________
Success is going from failure to failure without a loss of enthusiasm.
Halfdeck is offline   Reply With Quote
Old 2005-08-03, 05:22 PM   #3
mikeyddddd
A woman is like beer. They look good, they smell good, and you'd step over your own mother just to get one!
 
mikeyddddd's Avatar
 
Join Date: Sep 2003
Location: Irving, TX
Posts: 57
When I add a paysite I create an .html page that autorefreshes to that site's URL and I link to that page from galleries, ads, whatever.

If the sponsor or paysite goes away I just delete that page.

I've got the pages in niche directories. The 404 for the niche directory is setup to go to a site running bonuses/contests for signups or is selling well.

So a deleted paysite then gets sent to the "default" niche paysite.

It just takes a few seconds to login to my server and delete the defunct site.
__________________
mikey likes it
mikeyddddd is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:18 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc