Ignore subdomain rewrite rules

Posted by user55745 on Server Fault See other posts from Server Fault or by user55745
Published on 2012-09-26T20:17:24Z Indexed on 2012/09/26 21:39 UTC
Read the original article Hit count: 239

Filed under:
|
|

I'm having difficulty having a sub folder act differently to the main domain in my web.config for iss.

I want to prevent the sub folder from rewriting to the baselevel index.php and instead re-write to /subfolder/index.php/

I've tried this

              <rule name="Remove index.php for quiz" enabled="true" stopProcessing="false">
                <match url="^(gsoquiz/)(.*)$" ignoreCase="false" trackAllCaptures="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{R:1}" negate="true" pattern="^(index\.php|admin\.php)" />
                </conditions>
                <action type="Rewrite" url="/gsoquiz/index.php/{R:1}" />

          </rule>   

But all I get is

The page cannot be displayed because an internal server error has occurred.

Any help as to where I'm going wrong would be greatly appreciated. Going mad trying to figure this out :).

© Server Fault or respective owner

Related posts about iis

Related posts about rewrite