- This topic is empty.
-
AuthorPosts
-
January 21, 2014 at 10:09 am #631014JoshuaPahMember
Hi
Im trying to use htaccess to tidy up my aff links and also make it that i have all the links in the same place but i cant get it to work.
im a complete noob to this so its probably something stupid that im doing wrong.i placed my htaccess in my root directory and in my htaccess file i put
redirect /visit /http://mysite.com/redirect.aspx?pid=72953261&bid=298546
then in my html i put – ive had to remove the link to post here so replaced it with xxxxxx
x xxxxx=”http://mysite.com/visit” rel=”nofollow” target=”_blank” class=”button-visit” title=”Visit Casino”>Visit Casino.x
but whenever i click on that link i get
404 Not Found
The requested document was not found on this server.Does anybody know what im doing wrong
January 29, 2014 at 1:25 am #835530TradMemberHey
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 #835532JoshuaPahMemberHi 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 #835537JoshuaPahMemberThanks Lowrisk
Everything is working great now. -
AuthorPosts