Skip to content

Instantly share code, notes, and snippets.

@fmtarif
Forked from vinaydotblog/.htaccess
Created September 27, 2013 10:49
Show Gist options
  • Save fmtarif/6726885 to your computer and use it in GitHub Desktop.
Save fmtarif/6726885 to your computer and use it in GitHub Desktop.
AddType text/cache-manifest manifest
RewriteEngine On
# Put your installation directory here:
# If your URL is www.example.com/, use /
# If your URL is www.example.com/site_folder/, use /site_folder/
RewriteBase /
# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# For reuests that are not actual files or directories,
# Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]
# Restrict directory listing
Options -Indexes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment