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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 3 posts - 1 through 3 (of 3 total)