-1

Ok: I know that many sites have a structure of:

example.com/index.php/pseudodir/pseudofile

Obviously AcceptPathInfo needs to be enabled in order for index.php to be able to make sense of any of it...

But is it possible for me to have / transparently represent index.php so that example.com/pseudodir/file would pass pseudodir to the real file /index.php

?

Thanks

1 Answer 1

0

You'll need to use mod_rewrite in order to do this; HTTPd adheres to the filesystem structure too tightly.

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?(.*)$ index.php/$1 [L]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .