SetEnv APPLICATION_ENV development #requirephp 56 AddHandler application/x-httpd-php56 .php AddType text/x-component .htc Options +FollowSymlinks -Indexes -MultiViews ErrorDocument 403 "Forbidden" SetEnvIf User-Agent Insights is_a_google_insights RewriteEngine On RewriteCond %{HTTP_HOST} ([^\.]+)\.dev\.adaptainc\.com$ RewriteRule ^(.*)$ http://%1.dev.orange35.com%{REQUEST_URI} [R=301,L] #Show admin session RewriteRule ^admin/session\.php$ session.php [L] #RewriteCond %{REMOTE_ADDR} !=78.111.219.54 #RewriteCond %{REMOTE_ADDR} !=37.53.65.244 #RewriteRule ^(.*)$ maintenance.html [L] # Avoid refreshing captha images by Xenu and generation errors in Xenu log RewriteCond %{HTTP_USER_AGENT} ^Xenu RewriteRule __captcha-refresh images/dot.png [L] # Send fake image for Xenu to avoid errors about wrong referrer RewriteCond %{HTTP_USER_AGENT} ^Xenu RewriteRule images/captcha/.*\.png images/dot.png [L] # captcha's referrer check RewriteCond %{HTTP_REFERER} ^$ RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} !^([^@]*)@@https?://\1/.* RewriteRule images/captcha/.*\.png - [NC,F] RewriteRule ^js(-[0-9]+)?\/ckeditor\/config\.js$ js/ckconfig.js [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)\.merge\.(css|js)$ _lib/merge.php?file=$1.merge.$2 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.*)$ index.php [QSA] DirectoryIndex index.php