jcarle/cloneReader/master/.htaccess - Htaccess File

jcarle/cloneReader/master/.htaccess

#RewriteBase /

# pass the default character set
# AddDefaultCharset utf-8

AddType application/x-web-app-manifest+json .webapp

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteCond $0 =deploy.sh [OR]
  RewriteCond $0 =maintenance.php 
  RewriteRule ^(.*)$ index.php?/error [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  # If we don't have mod_rewrite installed, all 404's
  # can be sent to index.php, and everything works as normal.
  # Submitted by: ElliotHaughin

  ErrorDocument 404 /index.php
</IfModule>

# Turn on Expires and set default expires to 3 days
ExpiresActive on
ExpiresDefault A0

# Set up caching on media files for 1 month
<FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$">
  Header set Cache-Control "public"
  ExpiresDefault A2419200
</FilesMatch>

<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>

php_value upload_max_filesize 40M

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache