.htaccess - Can't remove index.php from url(IP ADDRESS) in codeigniter framework -


i have used below code in htaccess file remove index.php url in codeigniter framework

rewriteengine on rewritecond $1 !^(index\.php|images|robots\.txt) rewriterule ^(.*)$ /index.php/$1 [l] 

it's working fine in local when in live using ip address access site it's not removing index.php

you can try this

rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l] 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -