Ekleipsis
Forum Replies Created
-
Just had this happen to a client’s site today. If you are using a Windows IIS webserver this should do the trick.
Using IIS 7.x with the MS URL Rewriter installed (http://www.iis.net/downloads/microsoft/url-rewrite)
And PHP for your site running in FastCGI mode.Then you need your web.config file in your site’s home directory to contain these details:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules><rule name="Main Rule" stopProcessing="true"><match url=".*"/><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/></conditions><action type="Rewrite" url="index.php"/></rule> <rule name="wordpress" patternSyntax="Wildcard"> <match url="*"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php"/> </rule></rules> </rewrite> <httpErrors errorMode="Detailed" /> </system.webServer> </configuration>If you are still using IIS6 then a similar solution will work but you would need a Third Pary URL rewriting ISAPI module for the functionality usually given with Apache/ModRewrite in .htaccess
Hope it Helps
In case anyone stumbles on this before finding a solution,
If you are using a Windows IIS webserver this should do the trick.
Using IIS 7.x with the MS URL Rewriter installed (http://www.iis.net/downloads/microsoft/url-rewrite)
And PHP for your site running in FastCGI mode.Then you need your web.config file in your site’s home directory to contain these details:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules><rule name="Main Rule" stopProcessing="true"><match url=".*"/><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/></conditions><action type="Rewrite" url="index.php"/></rule> <rule name="wordpress" patternSyntax="Wildcard"> <match url="*"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php"/> </rule></rules> </rewrite> <httpErrors errorMode="Detailed" /> </system.webServer> </configuration>If you are still using IIS6 then a similar solution will work but you would need a Third Pary URL rewriting ISAPI module for the functionality usually given with Apache/ModRewrite in .htaccess