RewriteEngine on
# Redirect all except allowed IP
RewriteCond %{REMOTE_ADDR} !^XX.XXX\.XXX\.XXX$
RewriteRule /aaa.php http://www.example.com/bb.php [R=302,L]
UsagiYojimbo a dit:Tu met bien ces règles juste en-dessous de ton RewriteEngine on ?