IIS strange redirection (1 post)

  1. howlegh
    Posted 2 years ago #

    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: 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.

Topic Closed

This topic has been closed to new replies.

About this Topic