Matching Apache .htaccess commands

Topics: User Forum
Apr 28, 2011 at 12:16 PM


First off got everything installed and working, however unsure if I have an IIS app whether a local iirf.ini file within the app folder should work (app name in virtual dir tab in IIS =app) (eg. called under the website in IIS). 

I ask this question as I thought you could, but I can't call - gives me a 404, but works fine. 

My main question is does the following map straight across (I can see the commands exist, but not sure of the syntax) from Apache (NB code would have been in a app specific .htaccess file), with the additional caveat that if the above is website level only then I need to put an /app/ subfolder rule in?

   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ ?config=$1 [L,QSA]

Any suggestions would be much appreciated.



May 2, 2011 at 6:39 PM

The rules you have are legal syntax in IIRF, and "should" work.

You can use a RewriteBase directive to specify the implicit stripping of the /app subfolder in incoming URLs. (check the doc on that directive for more info on that).

Whether it actually works depends on whether your IIS configuration in the /app dir is set up properly to handle the rewritten URLs.   

Good luck.