Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Dans cet exemple, tout IP autre que "11.22.33.444" arrivant à la racine se voit afficher le contenu du dossier "/old" :
- RewriteEngine On
- RewriteCond %{REMOTE_HOST} !^11\.22\.33\.444
- RewriteCond %{REQUEST_URI} !^/old
- RewriteCond %{DOCUMENT_ROOT}/old%{REQUEST_URI} -d
- RewriteRule ^(.*?)/?$ /old/$1/ [L]
- RewriteCond %{REMOTE_HOST} !^11\.22\.33\.444
- RewriteCond %{REQUEST_URI} !^/old
- RewriteRule ^(.*)$ /old/$1 [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement