Get exclusive CAP network offers from top brands

View CAP Offers

.htaccess redirect problem

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #631014
    JoshuaPah
    Member

    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

    #835530
    Trad
    Member

    Hey

    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
    8) 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/brand

    The beauty of this is, when you want to edit the links, you just edit the php file, and job done

    #835532
    JoshuaPah
    Member

    Hi 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 all

    Then 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.

    #835537
    JoshuaPah
    Member

    Thanks Lowrisk
    Everything is working great now.

Viewing 4 posts - 1 through 4 (of 4 total)