Afficher un message
Vieux 14/02/2008, 07h10   #3
Nospam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: redirecting two ip ranges and redirecting to the homepage

Suppose as well as the redirection I wanted to make forbidden for the two
ips, and redirect them to another page, would something like this work:


Options +FollowSymLinks

RewriteEngine On

RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) https://www.example.com/$1[R=301,L]

ErrorDocument 403 http://www.example.com/index2.html

<Limit GET HEAD POST>
order allow,deny
deny from 212.6.7.8
deny from 213.7.7.8
allow from all
</Limit>


  Réponse avec citation
 
Page generated in 0,04588 seconds with 9 queries