I use this code and it works when i go directly to 1.0.0.1, but it doesn't work when i want to acces http://1.0.0.1/css.css
This only works when I use http://1.0.0.1/dir1/css.css
I want to rewrite everything that comes after 1.0.0.1
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
#IP 1
RewriteCond %{HTTP_HOST} ^1.0.0.1$ [NC]
RewriteRule ^$ /dir1/ [QSA,L]
#IP 2
RewriteCond %{HTTP_HOST} ^1.0.0.2$ [NC]
RewriteRule ^$ /dir2/ [QSA,L]