htaccess
So often people need a hack, we thought we should make a library of hacks, and a Laboratory to make new ones too.
Just one hack, the old ‘page forwarding’ problem, like an affiliate link.
You put your page as; http://keywordcandy.com/alldaysucker.php but you really need them to go to; http://www.keywordcandy.com/members/go.php?r=13&i=l2
An affiliate link.
Here is the code…
Redirect http://mysite.com/alldaysucker.php http://www.keywordcandy.com/members/go.php?r=13&i=l2
Or in simple language…
Redirect /old.html http://www.mysite.com/new.html
So what happens is the visitor clicks on a link that says ‘All Day Sucker’ and in the browser they can type that link without all the ?r=13&=12 baloney, but in reality they arrive at KeywordCandy and you get the credit.
We will be updating and improving this section as you submit new hacks and improvements to existing codes.
Your contributions help us all, and you will be rewarded, with karma, or Candy, or whatever I can find around here. I’m just another hunchback in the Laboratory, you know, but when the Master is away, the Lab Rats can play!




