Starting to work with CodeIgniter and want to remove index.php
from URLS:
example.com/index.php/news/article/my_article
The problem is that I have the file .htaccess
in 3 different places:
application
sytem
public_html
What to use to remove index.php
, using this code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]