kravemir
kravemir

Reputation: 11026

Apache rewrite all paths to index.php

How to rewrite paths like:

/xyz/ijk?a=b&c=d

to index.php:

/index.php/xyz/ijk?a=b&c=d

But with variable PATH_INFO = /xyz/ijk as it's when i don't use rewrite (/index.php/xyz/ijk?a=b&c=d)

Upvotes: 0

Views: 3452

Answers (1)

Vadym
Vadym

Reputation: 5284

Try something like this:

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

Upvotes: 1

Related Questions