![]() |
.htaccess question for redirecting...
Hi,,
hope to get my answer here. i want to redirected a specific incoming domain by using this code in htaccess: RewriteEngine on RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?other-domain.com/.*$ [NC] RewriteRule .* http://mydomain.com/to-another-page.html [R,L] the problem is that the .htaccess keep loading this rules and the incoming visitor from other-domain.com never see the page... if you can help... thank you .. |
RewriteEngine on
RewriteCond %{HTTP_HOST} ^fart.com$ [OR] RewriteCond %{HTTP_HOST} ^www.fart.com$ RewriteRule ^(.*)$ http://www.bukkake.com [R=301,L] |
ahhh i didn't read you need to read the referer.....no clue how to do that, be interested to find out though
|
yes... the referer domain must be sent to a different page...
the big problem is that the .htaccess file just load&load&load... |
Sounds like the referrer still lives after your redirect, so you will need to either restrict your RewriteRule (by using something other than .*) or add another RewriteCond to stop the rewrite when the page it's redirected to is hit.
|
Yeah..Vending machine...
that's exactly what i would like to do : stoping the rewrite when it's redirected.. but how ? |
Try:
Code:
RewriteRule !^/to-another-page.html /to-another-page.html [R,L] Code:
RewriteCond %{REQUEST_URI} !^/to-another-page.html |
i've tried both... but it doesn't work...
|
All times are GMT -7. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123