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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.