Skip to content

Instantly share code, notes, and snippets.

@vinaydotblog
Created March 27, 2012 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vinaydotblog/2218446 to your computer and use it in GitHub Desktop.
Save vinaydotblog/2218446 to your computer and use it in GitHub Desktop.
Codeigniter / Yii index.php remove
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