IIS strange redirection
-
I installed wordpress as a subdirectory under my main domain and made it an application in IIS.
(I should note here that I know WP works better in linux than Windows but the rest of the complex site is written in .net and for SEO purposes, I do not want to split up the site where the blog is a different subdomain hosted on a linux machine)
Here is the web.config in the WP directory:
‘<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<defaultDocument enabled=”true”>
<files>
<add value=”index.php” />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name=”WPurls” enabled=”true” 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/{R:0}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>’Here is the URL that should load the main page of the blog: http://www.greghowlett.com/wpblog1
Notice that it renames the url http://www.greghowlett.com/wpblog1/default.aspx/ but appears to load the page correctly. I have no idea why WP is doing that. Default.aspx is no where in the web.config or anywhere else I know of in the setup.
Can someone explain this? Also, I would prefer to use the permalink setting “post-name” but when I try that setting, http://www.greghowlett.com/wpblog1/ returns a 404.
The topic ‘IIS strange redirection’ is closed to new replies.