#requirephp 54 AddHandler application/x-httpd-php54 .php # caching directives - task 21998, QSF-28 # uncomment when going live; only some part may be uncommented # output ETags for static files FileETag MTime Size # set up expiration headers # this section should be uncommented on server 1 and server 7 ExpiresActive On ExpiresDefault "now plus 1 week" ## ## !!! This section already exists on Adapta/Orange35 hosing servers, so it should be uncommented ONLY on OTHER hosting servers!!! # # SetOutputFilter DEFLATE # # # Netscape 4.x has some problems # BrowserMatch ozilla/4 gzip-only-text/html # # # Netscape 4.06-4.08 have some more problems # BrowserMatch ozilla/4\.0[678] no-gzip # # # MSIE masquerades as Netscape, but it is fine # # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # # # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 # # the above regex wont work. You can use the following # # workaround to get the desired effect: # BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html # # # Don't compress media # SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|swf|mp3|mp4|flv)$ no-gzip dont-vary # # # Don't compress zip files # SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary. # # # # Make sure proxies don't deliver the wrong content # Header append Vary User-Agent env=!dont-vary # # AddType text/x-component .htc Options +FollowSymlinks SetEnvIf User-Agent Insights is_a_google_insights #AuthUserFile /usr/local/share/php-libs/tester-basic-auth/.htpasswd-tester #AuthGroupFile /dev/null #AuthName "Password protected site" #AuthType Basic #Require valid-user #Satisfy any #Order allow,deny #Allow from env=is_a_google_insights ErrorDocument 403 "Forbidden" RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #RewriteCond %{REMOTE_ADDR} !=78.111.219.54 #RewriteCond %{REMOTE_ADDR} !=37.53.65.244 #RewriteRule ^(.*)$ maintenance.html [L] RewriteCond %{HTTP_HOST} !^www\.madaspcc\.org$ [NC] RewriteRule ^(.*)$ https://www.madaspcc.org/$1 [R=301,L] #Show admin session RewriteRule ^admin/session\.php$ session.php [L] #REDIRECTS RewriteRule ^home.html$ https://www.madaspcc.org/ [R=301,L] RewriteRule ^contact.html$ https://www.madaspcc.org/contact [R=301,L] RewriteRule ^find-a-collision---service-center.html$ https://www.madaspcc.org/for-consumers/find-a-repair-center [R=301,L] RewriteRule ^collision---service-council-reception.html$ https://www.madaspcc.org/ [R=301,L] RewriteRule ^nitroxcamp.html$ https://www.madaspcc.org/for-consumers/nitro-x-summer-camp [R=301,L] RewriteRule ^collision---service-council-auto-show-exhibit.html$ https://www.madaspcc.org/ [R=301,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 # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php54” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php54 .php .php5 .phtml # php -- END cPanel-generated handler, do not edit