Advertisement
Guest User

Untitled

a guest
Dec 5th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. # Make sure directory listing is disabled
  3. Options +FollowSymLinks -Indexes
  4. RewriteEngine on
  5. # Keep people out of codeigniter directory and Git/Mercurial data
  6. RedirectMatch 403 ^/(system\/cache|system\/codeigniter|\.git|\.hg).*$
  7. # Send request via index.php (again, not if its a real file or folder)
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. <IfModule mod_php5.c>
  11. RewriteRule ^(.*)$ index.php/$1 [QSA,L]
  12. </IfModule>
  13. <IfModule !mod_php5.c>
  14. RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  15. </IfModule>
  16. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement