- This topic is empty.
-
AuthorPosts
-
January 29, 2014 at 1:25 am #835530
TradMemberHey
Don’t do it through htaccess
Do the following
1) Create a folder called claim in your public html folder on your host
2) Within the claim folder, create individual folders, named after each brand you promote. So for example, you’d have claim/williamhill
3) Open notepad and paste the text I’ve pmd you into it
4) Save the file as index.php (no .txt on the end)
5) Upload this file to each of the individual claim folders, i.e williamhill, bet365 etc
6) Go into the williamhill folder and edit the index.php and paste in the william hill affiliate link.
7) Test the link by going to http://www.yoursite.com/claim/williamhill
it should then redirect to your affiliate link
9) Repeat the above for all brands
10) change links on your site the the http://www.yoursite.com/claim/brandThe beauty of this is, when you want to edit the links, you just edit the php file, and job done
January 29, 2014 at 3:15 pm #835532
JoshuaPahMemberHi lowrisk Thanks for the help it is very much appreciated.
In my httpdocs, i have that instead of public html
I created a claim folder, inside that folder i created a 32red folder, inside that i created an index.pnp document,
i put the php code you sent me changing the AFF LINK to my aff code, saved it allThen went to my index.html changed the aff link to http://mysite.com/claim/32Red
but when i click on the link all i get is a 403 forbidden
Forbidden
You do not have permission to access this document.Im totally stumped lol.
January 30, 2014 at 11:03 am #835537
JoshuaPahMemberThanks Lowrisk
Everything is working great now. -
AuthorPosts