codeigniter base path redirection

by Ranganathan 2013-03-08 13:24:06

Example

My url looks like this

cricruns.com/index.php/livematch

I want it redirect to


cricruns.com/livematch

Solution




# Now the CodeIgniter part

RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]



805
like
0
dislike
0
mail
flag

You must LOGIN to add comments