AddHandler application/x-httpd-php54 .php AddType text/x-component .htc Options +FollowSymlinks ErrorDocument 403 "Forbidden" RewriteEngine On RewriteCond %{HTTP_HOST} !^sipallday\.1\.preview\.adaptainc\.com$ [NC] RewriteRule ^(.*)$ http://sipallday.1.preview.adaptainc.com/$1 [R=301,L] #RewriteCond %{REMOTE_ADDR} !=78.111.219.54 #RewriteCond %{REMOTE_ADDR} !=37.53.65.244 #RewriteRule ^(.*)$ maintance.html [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 AuthType Basic AuthName "preview access:" AuthUserFile /home/sipallda/site/.htpasswd_preview require valid-user