![]() |
Htaccess to redirect all .jp traffic ?
Hi, I was trying to adjust my .htaccess file to redirect
all trafic coming from *.jp domains. Unfortunately I had no success. Please, can anybody advice me if it is possible to use RewriteCond %{HTTP_REFERER} to protect my site from surfers comin from ALL *.jp domains ? Thanks in advance |
.jp is probably all viruses, firewall their asses out!
|
Thanks ... but this does not solve my problem ... I need to
do it through htaccess ... any other ideas ? |
Here is a .htaccess sample Redirect based on a specific Machine Name. I have not tried to mask the host, like *.*.jp or *.jp , but maybe this might get you going in the right direction.
This sample will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net . Add the following to the .htaccess file: RewriteEngine On Options +FollowSymlinks RewriteBase / # Rewrite Rule for machine.domainname.net RewriteCond %{HTTP_HOST} machine.domainname.net$ RewriteCond %{REQUEST_URI} !machine/ RewriteRule ^(.*)$ machine/$1 |
| All times are GMT -7. The time now is 08:22 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123