I want to allow access to /admin and /login only from certain IP addresses (two 192.168.0.1, 10.10.10.1). I already learned here that I have to use something like RewriteCond %{REMOTE_ADDR} !^192\.168\..*$, but how to do this more precise in my example?
I use Symfony2 and have a quite basic htaccess file in my /www folder.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} calculator.ipsum.de$
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteCond %{REQUEST_URI} !\.
RewriteRule (.*) index.php [L]
</IfModule>