by
546 10
0
3
1,599
0
Top 1% !
Famous
Specified
Popularity: 15390th place

Published on:

No tags for this snippet yet.
LanguageApacheConf
LicenseMIT_X11
SourceGitHub

Codeigniter .htaccess

Codeigniter .htaccess: 
.htaccess
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/332422/Codeigniter--htaccess?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
<IfModule mod_rewrite.c> RewriteEngine On # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading # slashes. # If your page resides at # http://www.example.com/mypage/test1 # then use # RewriteBase /mypage/test1/ RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> <IfModule !mod_rewrite.c> # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin ErrorDocument 404 /index.php </IfModule>
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus