Support » Installing WordPress » 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″?>
    <defaultDocument enabled=”true”>
    <add value=”index.php” />
    <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” />
    <action type=”Rewrite” url=”index.php/{R:0}” />

    Here is the URL that should load the main page of the blog:

    Notice that it renames the url 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, returns a 404.

  • The topic ‘IIS strange redirection’ is closed to new replies.