Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- # Make sure directory listing is disabled
- Options +FollowSymLinks -Indexes
- RewriteEngine on
- # Keep people out of codeigniter directory and Git/Mercurial data
- RedirectMatch 403 ^/(system\/cache|system\/codeigniter|\.git|\.hg).*$
- # Send request via index.php (again, not if its a real file or folder)
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- <IfModule mod_php5.c>
- RewriteRule ^(.*)$ index.php/$1 [QSA,L]
- </IfModule>
- <IfModule !mod_php5.c>
- RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
- </IfModule>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement