I want to redirect all requests to my index.php
script in such a way that everything that goes after http://mysite/
would passed to index.php
as url-argument. For example, http://mysite/moo.css
should become http://mysite/index.php/moo.css
and http://moosite/moo/foo/bar/
should become http://index.php/moosite/moo/foo/bar/
.
Easy, huh?
But not RedirectMatch (.*) index.php/$1
, nor RewriteRule ^(.*)$ index.php/$1 [R,L]
(or others regexp like that; RewriteEngine on
was not ommitted; mod_rewrite
and mod_alias
are turned on) took effect.
What's going on?
Without knowing anything more, my guess would be that the Allowoverride
directive is missing for that directory. (Captain obvious style answer, but still easy to overlook).