you should know, if you switch from php cgi to php fastcgi, you have to change the errormod too, because it is explicit told, to use the php cgi exe.

you have the normal 404 behavior, which means, this only is used, if the requested file doesn’t exist.

What i dont know is how it performs on many requests, because it first try to find the file on the path.
Maybe someone other could say, how much the performance impact is related to normal rewrite

2011/3/23 Ludovic Demblans <>

Ok, works for me too.

Thank you very much.

Have you faced some issues i should be told with this solution ?


2011/3/22 Ludovic Demblans <>


I have some php scripts who parse the $_SERVER['REQUEST_URI'] variable to
figure what they have to do.
We use URLs like /users/me/profile/edit and not

I wrote a small rewriter :

(colorful version: )

but i would like $_SERVER['REQUEST_URI'] to be "/users/me/profile/edit"
and not "/index.php?"

... autosnip ...
Hi Ludovic,

i go a slightly other way for this task. I Use a 404 errormod and direct all
requests in it to index.php




out404(Arg) ->
    out404(Arg, get(gc), get(sc)).
out404(Arg, GC, SC) ->
    yaws_cgi:call_cgi(Arg, GC#gconf.phpexe,  lists:flatten(Arg#arg.docroot)
++ "/index.php").

crashmsg(_Arg, _SC, L) ->
     [{h2, [], "Internal error, yaws code crashed"},
      {pre, [], L},

it is not the best solution, but it works good for me

Utilisant le logiciel de courrier révolutionnaire d'Opera :