WordPress.org

Ready to get started?Download WordPress

Forums

404 error after enabling "pretty permalinks" with out mod_rewrite IIS 7 (2 posts)

  1. oli@cccit.co.uk
    Member
    Posted 2 years ago #

    Hi all,

    My dedicated web server has the URL Rewrite module installed and I have followed everything from http://codex.wordpress.org/Using_Permalinks ,also found other links on Google that have helped but not quit cracked it (see end of post), and the pretty permalinks are working fine if you go to a post, for example http://www.cccit.co.uk/news/test-post.

    However, navigating to the home page results in a 404. So, http://www.cccit.co.uk/news is getting the 404. Disabling pretty permalinks from within my wordpress login will cause this error to go away.

    Any help would be my appreciated.

    Thank you,

    Oli

    http://forum.winhost.com/showthread.php?t=8410

    http://forums.iis.net/t/1170224.aspx

    http://ruslany.net/2009/05/iis-7-url-rewrite-module-support-in-wordpress-28/ (have also posted here)

  2. oli@cccit.co.uk
    Member
    Posted 2 years ago #

    Hi,

    Can anyone help on this, I'm sure there is something I have done totally wrong in the setup, as I'm not even 100% sure if I should have a .htaccess? or is this only for Apache servers?

    My web.config file is in root /news and looks like this

    <?xml version="1.0"?>
    
    <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/{R:0}" />
    
            </rule>
    
          </rules>
    
        </rewrite>
    
      </system.webServer>
    
    </configuration>

    Let me know if you want more information. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic