Friendlyurls and redirect problem


(Andrey Izotov) #1

What you need to know is
I have friendlyurls snippet that works like that:
if {path} not /manager
regexp ^/(.*)$
to {path} {path}/ /index.php?q={1}&{query}
As you can see some requests are rewritten to /index.php?etcetc

Also i need to redirect /index.php to /
But as you might have already understood it doesn’t work. How to make it work together?


(Matthew Fay) #2

If you don’t want to send them to index.php, have you tried simply not including it in your rewrite target? i.e. {path} {path}/ /?{1}&{query}

Assuming fastcgi is setup with defaults, it should assume index.php without a problem.