redirect folder from old URL to new rook URL

Discussion in 'Apache' started by itaym, Mar 6, 2012.

  1. #1
    I have folder / directory on old URL and I try to redirect the entire folder to new root URL.<br><br>

    I found that redirect in htaccess like that:<br>
    RedirectMatch ^/userfiles/.* http://www.new-site.co.il<br><br>

    make the redirect BUT, when I have address like that:<br>
    http://www.old-site.com/userfiles/player?flv=/userfiles/meyira.flv&prev=userfiles/vid12.jpg.swf<br><br>

    I redirect to the new site but to this address:<br>
    http://www.new-site.co.il/?flv=/userfiles/meyira.flv&prev=userfiles/vid12.jpg.swf<br><br>
    I found out that the part "player?flv=" make the problem because when i remove the "?" and the "=" the redirect work perfect.
     
    Last edited: Mar 6, 2012
    itaym, Mar 6, 2012 IP