On Thu, Mar 11, 2010 at 12:41 PM, Alexis Sukrieh <sukria@sukria.net> wrote:
Le jeudi 11 mars 2010 à 12:05 +0100, icovnik a écrit :
I just wonder whether is it possible to get rid of that "dispatch.cgi" part in URI? To make the same functionality but with URIs like this:
http://server/App1/public/foo/bar
e.g. to completely hide the script name from outside.
If you followed my example, it is the case, I access my app the following:
The rewrite rule does hide the dispatch.cgi part, it's done behind the scene.
Well... Yes and no :) If those Rewrite(Engine|Cond|Rule) settings are written in httpd.conf then everything works as you wrote - and that is EXACTLY what I wanted. But if the settings are in .htaccess file in /App1 then it behaves a bit differently, there should be the dispatch.cgi in URI as I wrote (becouse I was setting it in .htaccess as other settings). Just moving it to httpd.conf solved the problem. (So there is only a note for me to look at the differencies in apache docs) So again thank you for your help. ico