Jump to content

Mod_Rewrite to other domain/url with variable


marvinh1985

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.