Cytat
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^83.14.122.xx$
RewriteCond %{REMOTE_ADDR} !^94.42.58.xx$
RewriteCond %{REQUEST_URI} !^/stara
RewriteRule (.*) /stara/$1 [P]
</IfModule>
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^83.14.122.xx$
RewriteCond %{REMOTE_ADDR} !^94.42.58.xx$
RewriteCond %{REQUEST_URI} !^/stara
RewriteRule (.*) /stara/$1 [P]
</IfModule>
działa jak należy.. ale potrzebuje teraz zrobić, żeby dla IP, które mają zgodę na dostęp do strony (bez przekierowania do folderu STARA) były wykonane takie rzeczy:
Cytat
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
jak to zrobić?