I’ve been trying for hours and could not make it work. Searched for answers everywhere, and nothing seems to solve my problem.
I even tried the solutions described here: Remove index.php in codeigniter 2.1.0. No luck at all.
I have set the config[‘index_page’] as ”.
My .htaccess is on the root folder (where the sys and app folders are) and is written like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
Still, the only way I can access my controller methods is with the goddamn index.php in the url.
And yes, my apache conf has mod rewrite enabled.
ANY HELP would be incredibly nice.
EDIT
I´ll add some more info, maybe it’s relevant.
- I´m using ZendServer.
- I´m working at localhost by now.
I finally managed to work this out. Thanks for all the answers, special thanks to @ddanurwenda. His rewrite rules were the only ones that solved my problem.
There was an Apache config that I had overlooked: I changed this line (from httpd.conf):
To the following:
That configuration were keeping my htaccess file from being read.