marvinh1985 Posted December 14, 2010 Share Posted December 14, 2010 Good evening everybody, I have a small problem, and can't find the solution. I have a URL, lets say: http://www.mywebsite.com/movie.php?movie=9999 If the visitors click this link it should rewrite/redirect to the following URL with the movie variable included... mms://www.someothersite.com/affiliate/index2.php?movieid=9999&affid=1265&bandbr=&refcode= So the variable data of "movie" needs to pass to the "movieid" variable in the new link... I have tried something like bellow, but didn't work... Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} movie=(.*) RewriteRule ^grab(.*) mms://www.someothersite.com/affiliate/index2.php?movieid=%1&affid=1265&bandbr=&refcode= Is this even possible with mms:// links on Mod_Rewrite? if possible, how to do it... else some other solution? Thanks people...! Marvin Quote Link to comment https://forums.phpfreaks.com/topic/221664-mod_rewrite-to-other-domainurl-with-variable/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.