Codeigniter .htaccess


/ Published in: Apache



Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteBase /
  3. # Hide the application and system directories by redirecting the request to index.php
  4. RewriteRule ^(application|system|\.svn) index.php/$1 [L]
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_FILENAME} !-d
  7. RewriteRule ^(.*)$ index.php/$1 [QSA,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.