I've an issue where i want to redirect a user on the basis of a substring from referered url, How i can accomplish that using htaccess?
Thanks in Advance,
You can use below code to make that work:
RewriteCond %{HTTP_REFERER} http\:\/\/example.com/([a-z]+)/videos/
RewriteRule (.*)$ /login/%1/
I tried on my domain.. and it works... hope that too work with you... :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With