Can this mod rewrite be done?

Discussion in 'Apache' started by MKInfo, Nov 25, 2007.

  1. #1
    I am using VCM interstitials on one of my sites.
    AS you know these pop up between pages now and again and show an ad then redirect to the page the user was going to originally.
    Lately there is a problem.
    When a user clicks a link and an interstitial comes up it doesnt redirect to the correct page.
    So instead os going to the correct page
    ie:
    http://www.mysite.com/newpage/
    Code (markup):
    it goes to
    http://www.mysite.com/newpage/&upsid=872145573662
    Code (markup):
    The number is always the same so is there a way using htaccess to direct it to the correct page?
    Thanks
    MK
     
    MKInfo, Nov 25, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteRule ^/newpage/$ /newpage/?upsid=872145573662 [L,NC]


    that should work
     
    powerspike, Nov 25, 2007 IP
  3. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thanks powerspike
    Will that work for all the links on the site or will I have to use a different one for every link?
     
    MKInfo, Nov 26, 2007 IP
  4. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The above rewrite rule will only work on the /newpage/ directory structor,

    RewriteRule ^/(.*)/$ /$1/?upsid=872145573662 [L,NC]

    that rull will make it work for all first level directory structors.
     
    powerspike, Nov 27, 2007 IP