web config - IIS ignoring rewrite rules -
i have following web.config. think there nothing wrong it, can't rewrite index. tried url="index.php" without leading /
is there wrong web.config? or there else can wrong (like iis settings) - if so, possible check without having access server (other ftp page)?
<?xml version="1.0" encoding="utf-8"?> <configuration> <configsections> <sectiongroup name="system.webserver"> <sectiongroup name="rewrite"> <section name="rewritemaps" overridemodedefault="allow" /> <section name="rules" overridemodedefault="allow" /> </sectiongroup> </sectiongroup> </configsections> <system.webserver> <rewrite> <rules> <rule name="nwcms" stopprocessing="true"> <match url=".*" /> <action type="rewrite" url="/index.php" /> </rule> </rules> </rewrite> </system.webserver> </configuration>
i think want make index.php default document when open url without filename. try instead:
<?xml version="1.0"?> <configuration> <system.webserver> <defaultdocument enabled="true"> <files> <add value="index.php"/> </files> </defaultdocument> <modules runallmanagedmodulesforallrequests="true"/> </system.webserver> </configuration>
Comments
Post a Comment