The MU forums have moved to WordPress.org

GoDaddy IIS7 Case Sensitive url with Permalinks (8 posts)

  1. BogN
    Member
    Posted 15 years ago #

    Hi,

    This is my blog site for example: http://www.mydomainname.com/Blog
    If I set the permalink to default i can browse to this link : http://www.mydomainname.com/blog or this http://www.mydomainname.com/BLOG

    but if i change the permalink to month and year i can't browse anymore to this link: http://www.mydomainname.com/blog (I get page not found)

    My hosting is godaddy with IIS7

  2. BogN
    Member
    Posted 15 years ago #

    Anyone???

  3. cafespain
    Member
    Posted 15 years ago #

    Does IIS7 On godaddy allow a mod_rewrite type of thing? Maybe it's something to ask your host.

  4. SteveAtty
    Member
    Posted 15 years ago #

    i asked that in the other post. I know earlier versions of IIS did not support rewrite rules without buying a third party product

  5. Frumph
    Member
    Posted 15 years ago #

    IIS7 Rewrite is available as an after-release product which doesn't cost any money at all.

    However, since you're hosting on GoDaddy you need to find out if GoDaddy will let you have a proper web.config

  6. mdeeter
    Member
    Posted 14 years ago #

    Frumph,

    What would you put into the web.config to allow mod_rewrite ?

  7. rsgrone
    Member
    Posted 14 years ago #

    <configuration>
      <system.webServer>
        <defaultDocument>
          <files>
                    <remove value="default.aspx" />
                    <remove value="iisstart.htm" />
            <add value="index.php" />
          </files>
        </defaultDocument>
        <rewrite>
          <rules><rule name="wordpress - strip index.php" stopProcessing="false">
                        <match url="^index.php/(.*)$" />
                        <action type="Rewrite" url="{R:1}" />
                    </rule>
                    <rule name="wordpress - 1" stopProcessing="true">
                        <match url="^(.*/)?files/$" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                    <rule name="wordpress - 2" stopProcessing="true">
                        <match url="^(.*/)?files/(.*)" />
                        <conditions>
                            <add input="{REQUEST_URI}" negate="true" pattern=".*wp-content/plugins.*" />
                        </conditions>
                        <action type="Rewrite" url="wp-content/blogs.php?file={R:2}" appendQueryString="false" />
                    </rule>
                    <rule name="wordpress - 3" stopProcessing="true">
                        <match url="^(.+)$" />
                        <conditions>
                            <add input="{REQUEST_URI}" pattern="^.*/wp-admin$" />
                        </conditions>
                        <action type="Redirect" url="{R:1}/" redirectType="Permanent" />
                    </rule>
                    <rule name="wordpress - 4" stopProcessing="true">
                        <match url="." />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" pattern="" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" pattern="" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="wordpress - 5" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(wp-.*)" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="wordpress - 6" stopProcessing="true">
                        <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" />
                        <action type="Rewrite" url="{R:2}" />
                    </rule>
                    <rule name="wordpress - 7" stopProcessing="true">
                        <match url="." />
                        <action type="Rewrite" url="index.php" />
                    </rule></rules>
        </rewrite>
      </system.webServer>
    </configuration>
  8. rsgrone
    Member
    Posted 14 years ago #

    oh and by the way, all Microsoft Servers now come with a rewrite url available during install (trust me, it has everything to do with WordPress, check their site)

    If you are using IIS 7 on godaddy if is it a dedicated or virtual server?

    Godaddy will e of no help unless you have purchased some sort of support contract with them (I was with godaddy and left)

    Anyway, make certain the rewrite is imported and applied to the proper web configured on your server

    I have three copies of MU running and to be honest with you, if you do not follow the above statement you will get some really strange results (funny actually).. wordpress will just randomly decide (seriously on the fly) which index.php it wants to follow if you don't load the rewrite into the server config... works ok on a single configuration however, you will or can run into permission problems... next question, Intel CPU or Athlon?

About this Topic