1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

.htaccess simple re-direct..help!

Discussion in 'Programming' started by LeftoverSoup, Jan 29, 2010.

  1. #1
    I'm currently doing this with PHP. Is there any advantage to doing it with .htaccess, less resources used, something like that?


    Anyway been trying to figure out the .htaccess way all morning, brain-racking! So lets get down to what I need. When someone goes to...

    www.mysite.com/watch?v=ysE3AwUAMHU
    Code (markup):
    There is no content on that link, It's just neat and simple, so I want to use a redirect or rewrite to the next url, keeping the V value.

    www.mysite.com/hitmeup?url=http%3A//www.videonet.com/view%3Fv%3D{V-VALUE-HERE}
    Code (markup):
    {V-VAULE-HERE} is where the V code needs to show up. If someone could provide me with the correct .HTACCESS code that would be great. + REP - Thanks :)
     
    Last edited: Jan 29, 2010
    LeftoverSoup, Jan 29, 2010 IP
  2. Mr.AD

    Mr.AD Member

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Hi,

    You can test content bellow, I am not sure

    
    RedirectMatch www.mysite.com/watch?v=(*)$ http://www.mysite.com/hitmeup?url=http://www.videonet.com/view?v=$1
    Code (markup):
     
    Mr.AD, Jan 29, 2010 IP
  3. swarg

    swarg Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Does it work?
     
    swarg, Jan 29, 2010 IP