.htaccess - Redirect on the basis of referer HTTP_REFERER htaccess -
i've issue want redirect user on basis of substring referered url, how can accomplish using htaccess?
- user on http://example.com/aqeel/videos/
- there hyperlink on above page http://demo.example.com/
- when user reaches http://demo.example.com/, want him redirected http://demo.example.com/login/aqeel/, here aqeel substring captured referer url in htaccess step 1 url.
thanks in advance,
you can use below code make work:
rewritecond %{http_referer} http\:\/\/example.com/([a-z]+)/videos/ rewriterule (.*)$ /login/%1/
i tried on domain.. , works... hope work you... :)
Comments
Post a Comment