|
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{REMOTE_ADDR} ^85\.204\.$ [OR]
- RewriteRule ^(.*)$ clientsA.html [R,L]
- RewriteCond %{REMOTE_ADDR} ^95\.178\.124\.$ [OR]
- RewriteRule ^(.*)$ clientsB.html [R,L]
- </IfModule>
Sao chép mã example- RewriteEngine On
- RewriteCond %{REMOTE_HOST} 12.228 [NC,OR]
- RewriteCond %{REMOTE_HOST} 76.85 [NC,OR]
- RewriteCond %{REMOTE_HOST} 98.145 [NC,OR]
- RewriteCond %{REMOTE_HOST} 108.167 [NC]
- RewriteRule .* http://www.google.com/ [R=301,L]
Sao chép mã- RewriteEngine on
- RewriteCond %{REMOTE_ADDR} !^(123\.45\.67\.89|213\.45\.67\.89)
- RewriteCond %{REQUEST_URI} !/custom-message\.html$
- RewriteCond %{REQUEST_URI} !/custom-message\.png$
- RewriteRule .* /custom-message\.html [R=307,L]
Sao chép mã |
|