我已经安装了 codeigniter,当我访问 localhost/aplication/index.php 时,我想从 url 中删除 index.php。我已经从 httpd.conf 中设置了取消注释 mod_rewrite.so 这是我的 .htaccess 文件:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
当我从 localhost/aplication/index.php/data/users/12 访问 url 但不使用此 url localhost/aplication/data/users/12 时,它会成功。
我怎样才能解决这个问题??