![]() |
redirecting traffic from a certain domain?
What do I put into htaccess to redirect traffic from a certain domain?
|
Try:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://redirected-domain.com*$ [NC] |
So would it look like this?
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://www.sitetoredirect.com$ RewriteCond %{HTTP_REFERER} !^http://sitetoredirect.com$ RewriteCond %{HTTP_REFERER} !^http://www.redirectedhere.com*$ [NC] ???? |
I use it this way:
RewriteEngine On RewriteOptions inherit RewriteCond %{HTTP_REFERER} ^http://.*domain1.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*domain2.com/* [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*domain3.com/* [NC] RewriteRule /* http://www.redirected.com I'm guessing you'll want to redirect more than one domain soon enough |
Thanks both of you.
|
All times are GMT -7. The time now is 10:57 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123