HELP! URL masking mod_rewrite

Discussion in 'Programming' started by MyDallasOnline, Jul 14, 2010.

  1. #1
    Hi, i need some mod_rewrite help for url masking.

    Well, i have this link affiliate link which is
    And i want that content to be seen at my website

    And whenever someone acts on the website, lets say for example, they search for a hotel, then in the affilate link it would be like this


    "http://travel.ian.com/hotel/searchresults?cid=327497&currencyCode=USD&searchType=DESTINATION&userCity=dallas%2Cnull%2Cnull&searchParam=47CC53D2-98A6-486B-8106-8783749CA665&travelDetail=[20100804-2]2&propUnavail=null "
    Code (markup):

    But instead of that, i want visitors to be able to see this link
    I know this is possible how? because my competitor website does it.
    @ hotels.dallas<DOTcom

    Do a search there and u will see what i mean.
    note that cid=THENUMBER is the affiliate id ofcourse.

    if someone could help me then i would be really happy.
     
    MyDallasOnline, Jul 14, 2010 IP
  2. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #2
    The hotel.dallas website does not use masking... seems like API.
    Check if your affiliate provides some kind of API to let you get results.
     
    nimonogi, Jul 17, 2010 IP