Htaccess File

dbroadfoot/communitysouth/master/.htaccess

HTTP_HOST, HTTP_USER_AGENT, HTTPS, INCLUDES, POST, QUERY_STRING, REQUEST_METHOD, REQUEST_URI
php_value allow_call_time_pass_reference 0

<FilesMatch ".">
   order allow,deny
   deny from all
</FilesMatch>

<FilesMatch "(xml|woff|ttf|svg|pdf|ico|gif|jpe?g|png|jar|htc|css|js|txt|ttc|php|html|var(.+)storage.pdf(.+).pdf)$">
   order allow,deny
   allow from all
</FilesMatch>

<FilesMatch "index.php|index_treemenu.php">
   Options +Includes
   SetOutputFilter INCLUDES
   AcceptPathInfo On
   order allow,deny
   allow from all
</FilesMatch> 

# ----------------------------------------------------------------------
# Proper MIME type for all files
# ----------------------------------------------------------------------

# JavaScript
#   Normalize to standard type (it's sniffed in IE anyways) 
#   tools.ietf.org/html/rfc4329#section-7.2
AddType application/javascript         js

# Audio
AddType audio/ogg                      oga ogg
AddType audio/mp4                      m4a

# Video
AddType video/ogg                      ogv
AddType video/mp4                      mp4 m4v
AddType video/webm                     webm

# SVG
#   Required for svg webfonts on iPad
#   twitter.com/FontSquirrel/status/14855840545
AddType     image/svg+xml              svg svgz 
AddEncoding gzip                       svgz
                                       
# Webfonts                             
AddType application/vnd.ms-fontobject  eot
AddType application/x-font-ttf    ttf ttc
AddType font/opentype                  otf
AddType application/x-font-woff        woff

# Assorted types                                      
AddType image/x-icon                   ico
AddType image/webp                     webp
AddType text/cache-manifest            appcache manifest
AddType text/x-component               htc
AddType application/x-chrome-extension crx
AddType application/x-xpinstall        xpi
AddType application/octet-stream       safariextz
AddType text/x-vcard                   vcf

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} 240x   [OR]
RewriteCond %{HTTP_USER_AGENT} 320x   [OR]
RewriteCond %{HTTP_USER_AGENT} 160x   [OR]
RewriteCond %{HTTP_USER_AGENT} Blazer   [OR]
RewriteCond %{HTTP_USER_AGENT} Danger   [OR]
RewriteCond %{HTTP_USER_AGENT} UP.Browser   [OR]
RewriteCond %{HTTP_USER_AGENT} NetFront   [OR]
RewriteCond %{HTTP_USER_AGENT} Blackberry [NC,OR]
RewriteCond %{HTTP_USER_AGENT} UP.Link   [OR]
RewriteCond %{HTTP_USER_AGENT} CLDC   [OR]
RewriteCond %{HTTP_USER_AGENT} J2ME   [OR]
RewriteCond %{HTTP_USER_AGENT} AU-MIC   [OR]
RewriteCond %{HTTP_USER_AGENT} PalmSource   [OR]
RewriteCond %{HTTP_USER_AGENT} PalmOS   [OR]
RewriteCond %{HTTP_USER_AGENT} Xiino   [OR]
RewriteCond %{HTTP_USER_AGENT} Windows.CE   [OR]
RewriteCond %{HTTP_USER_AGENT} Ericsson   [OR]
RewriteCond %{HTTP_USER_AGENT} Avantgo   [OR]
RewriteCond %{HTTP_USER_AGENT} Nokia   [OR]
RewriteCond %{HTTP_USER_AGENT} Samsung   [OR]
RewriteCond %{HTTP_USER_AGENT} Symbian   [OR]
RewriteCond %{HTTP_USER_AGENT} SEC-SGH   [OR]
RewriteCond %{HTTP_USER_AGENT} ATTWS   [OR]
RewriteCond %{HTTP_USER_AGENT} Mobile   [OR]
RewriteCond %{HTTP_USER_AGENT} Elaine   [OR]
RewriteCond %{HTTP_USER_AGENT} LGE-VX   [OR]
RewriteCond %{HTTP_USER_AGENT} LGE.VX   [OR]
RewriteCond %{HTTP_USER_AGENT} LGE-LG   [OR]
RewriteCond %{HTTP_USER_AGENT} MOTO   [OR]
RewriteCond %{HTTP_USER_AGENT} MOT-   [OR]
RewriteCond %{HTTP_USER_AGENT} SKPD0   [OR]
RewriteCond %{HTTP_USER_AGENT} SKPB0   [OR]
RewriteCond %{HTTP_USER_AGENT} DoCoMo   [OR]
RewriteCond %{HTTP_USER_AGENT} HTC   [OR]
RewriteCond %{HTTP_USER_AGENT} webOS   [OR]
RewriteCond %{HTTP_USER_AGENT} iPhone   [OR]
RewriteCond %{HTTP_USER_AGENT} OpenWeb
RewriteCond %{QUERY_STRING}  !dsbl_mobi_redir=yes
RewriteRule .* https://m.communitysouth.net [R,L]

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} (.*)$
RewriteRule (.*)$ https://%1/$1 [L,R=301]

RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{REQUEST_URI} !site_admin
RewriteRule ^index.php/(site/)?(.*)? /$2 [L,R=301]

RewriteRule ^phpicalendar/ezdisplayicals.* index.php [L]
RewriteRule ^phpicalendar/ezpublishicals.* index.php [L]

RewriteRule ^content/download.* index.php [L]

RewriteRule extension/machform - [L]
RewriteRule machform/([^/]+.php)$ /extension/machform/standalone/$1 [L]

RewriteRule .php(.*)? - [L]
RewriteRule ^/var/[^/]+/cache/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule content/treemenu/(.*)? index_treemenu.php?node_id=$1 [L]
RewriteRule index_treemenu.php - [L]
RewriteRule robots.txt - [L]
RewriteRule design/.* - [L]
RewriteRule wordpress/.* - [L]
RewriteRule ^robots.txt - [L]

RewriteRule !.(pdf|ico|gif|jpe?g|png|jar|css|htc|ttc|js|html|xml)|var(.+)storage.pdf(.+).pdf$ index.php

DirectoryIndex index.php
Exit mobile version