I have a vhost called quick-mvc and I have a .htaccess file in the root dir. I have mod_rewrite.so activated. I know that mod_rewrite is not recommended but it is what I am using now and would like to get this working. Thank you!
.htaccess file
RewriteEngine on
RewriteCond %[REQUEST_FILENAME] !-d
RewriteCond %[REQUEST_FILENAME] !-f
RewriteCond %[REQUEST_FILENAME] !-l
RewriteRule ^(.+)$ index.php?url=$1 [L]
in the browser ex 1
http://quick-mvc/one/two/three/test
$_GET['url'] returns "index.php"
in the browser ex 2
http://quick-mvc/index.php/one/two/three/test
$_GET['url'] returns "index.php/one/two/three/test"
What I would like to accompish I would like to return what ex 2 shows even whether I add index.php like ex 1. I would also like index.php not to show up. Though I can code this out easily with php.