• i just install wordpress 3.6.1 on Windows server 2012 running IIS 8.
    i setup my permalinks checked on Custom Structure : /%postname%/
    but when i browse samplepage https://localhost/wordpress/sample-page/ i get error HTTP Error 404.0 – Not Found.

    i have change my web.config file to

    <?xml version="1.0" encoding="UTF-8"?>
    		<configuration>
    			  <defaultDocument enabled="true">
    					<files>
    						<add value="index.php" />
    					</files>
    				</defaultDocument>
    		 <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>

    when i use permalinks as “/index.php/%postname%/” this works but i want to use “/%postname%/” without index.php on my site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oasis28

    (@oasis28)

    i have change the web.cofig but still no luck. get Error 404

    <rewrite>
            <rules>
                <rule name="wordpress" patternSyntax="Wildcard">
                    <match url="*" />
                        <conditions>
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite

    Him I have same issue, any resolve this problem ??

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Windows 2012 IIS 8 using permalink /%postname%/ not working’ is closed to new replies.