iWader/Legacy-CMS/master/.htaccess - Htaccess File

iWader/Legacy-CMS/master/.htaccess

# BEGIN CMS

# ----------------------------------------------------------------------
# Start rewrite engine
# ----------------------------------------------------------------------

<IfModule mod_rewrite.c>
  # MultiViews interfers with proper rewriting
  Options -MultiViews
  
  # Enable the RewriteEngine and set the RewriteBase
  RewriteEngine on
  RewriteBase /
  
  # Check file exists and parse to index.php if false
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . index.php [L]
</IfModule>

# ----------------------------------------------------------------------
# Google magical website optimization with mod_pagespeed
# ----------------------------------------------------------------------
<IfModule mod_pagespeed.c>
  ModPagespeed off
</IfModule>

# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------

# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a batter experience for the poor IE folk

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  </IfModule>
</IfModule>

<IfModule mod_headers.c>
  # Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
  # We need to inform proxies that content changes based on UA
  Header append Vary User-Agent
  # Cache control is set only if mod_headers is enabled, so that's unncessary to declare
</IfModule>

# ----------------------------------------------------------------------
# UTF-8 encoding
# ----------------------------------------------------------------------

# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8

# Force UTF-8 for a number of formats
AddCharset utf-8 .html .css .js .xml .json .rss

# ----------------------------------------------------------------------
# A little more security
# ----------------------------------------------------------------------

# Do we want to advertise the exact version of Apache we're running?
#   Probably not.
## This can only be enabled if used in httpd.conf - It will not work in .htaccess
# ServerTokens Prod

# "-Indexes" will have Apache block users from browsing folders without a default document
# Usually you should leave this activated, because you shouldn't allow everybody to surf through
# every folder on your server (which may include private documents).
<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

# END CMS

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache