# IP-Restriction order deny,allow deny from all # Client1 (fake-ip) allow from 227.11.30.xx # Myself (fake-ip) allow from 85.125.23.xxx/27 # environment #SetEnv APPLICATION_ENV development SetEnv APPLICATION_ENV production #detect mod_rewrite SetEnv HTTP_MOD_REWRITE Off # charset AddDefaultCharset UTF-8 # front SetEnv HTTP_MOD_REWRITE On RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^api api.php [NC,L] RewriteRule ^.*$ index.php [NC,L] AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript Options -Indexes IndexIgnore *