pvorb/cephei/master/public/.htaccess - Htaccess File

pvorb/cephei/master/public/.htaccess

<IfModule mod_rewrite.c>

#Options    +FollowSymlinks
RewriteEngine  On
RewriteBase  /

# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond  %{HTTP_USER_AGENT} ^.*internal dummy connection.*$ [NC]
RewriteRule  .* - [F,L]

# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin

# For Friendly URLs
RewriteCond  %{REQUEST_FILENAME}  !-f
RewriteCond  %{REQUEST_FILENAME}  !-d

# Remove multiple trailing slashes at the end
RewriteCond  %{REQUEST_URI}  ^(.*)//(.*)$
RewriteRule  .    %1/%3  [L,R=301]

# For Friendly URLs
RewriteCond  %{REQUEST_FILENAME}  !-f
RewriteCond  %{REQUEST_FILENAME}  !-d

RewriteCond  %{REQUEST_URI}  !(.*)/$
RewriteRule  ^(.*)$    $1/  [L,R=301]

# For Friendly URLs
RewriteCond  %{REQUEST_FILENAME}  !-f
RewriteCond  %{REQUEST_FILENAME}  !-d

RewriteRule  ^(.*)$  /index.php?q=$1    [L,QSA,NC]

# Reduce server overhead by enabling output compression if supported.
#php_flag  zlib.output_compression    On
#php_value  zlib.output_compression_level  5

# Default character set
AddDefaultCharset  utf-8
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_USER_AGENT, REQUEST_FILENAME, REQUEST_URI

Comments

Apache