Codeigniter URL rewriting .htaccess is not working on CentOS
You need to also specify the locations that can use it. For example, in /etc/httpd/conf/httpd.conf you should see something like:
<Directory "/var/www/html"> ...lots of text...</Directory>
Make sure is has:
<Directory "/var/www/html"> AllowOverride All</Directory>
It's possible that your centos server isn't setup to handle PATH INFO. Try replacing the index.php/$1
in your rule's target to index.php?/$1
.
Then you need to modify your CI config to enable query strings: http://ellislab.com/codeigniter/user-guide/general/urls.html
In you application/config.php
file set $config['enable_query_strings']
to TRUE
.