Hi. I am looking to redirect traffic with a specific subfolder to another domain.
Example: I want
https://domainone.com/subfolder/898989 to end up going here:
https://domaintwo.com/SUBFOLDER?code=898989
Here is the rule I have, but it's not grabbing the 898989 as I think it should, it's also grabbing the subfolder/898989, which is resulting in
https://seconddomain.com/SUBFOLDER?c...bfolder/898989
Oh, and the 898989 is completely arbitrary ... I need it for any number string.
Code:
RewriteEngine On
RewriteCond %{http_host} ^domainone.com$
RewriteCond %{request_uri} ^/vip/(.*)$
RewriteRule (.*) https://domaintwo.com/VIP?code=$1 [R=302,L]
Thank you.