permalink issue on IIS 7
-
Hello,
I am having trouble getting my site to display permalinks. The default permalink works fine. But the post name permalink, which I need to have for my business webpage, does not. I get 403 – Forbidden: Access is denied.I have installed IIS7 on Windows Server 2008. I have enabled php and fastcgi. I have added this rewrite rule, as instructed, into web.config. There is no change.
<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” />
</rule>
</rules>
</rewrite>Here’s the entire code for web.config, in the wwwroot folder. The site itself is in a directory called “wordpress”:
<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<defaultDocument enabled=”true”>
<files>
<clear />
<add value=”index.php” />
<add value=”Default.htm” />
<add value=”Default.asp” />
<add value=”index.htm” />
<add value=”index.html” />
<add value=”iisstart.htm” />
<add value=”default.aspx” /></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>
<handlers>
<remove name=”PHP53_via_FastCGI” />
<add name=”PHP53_via_FastCGI” path=”*.php” verb=”GET,HEAD,POST” modules=”FastCgiModule” scriptProcessor=”C:\Program Files (x86)\PHP\v5.3\php-cgi.exe” resourceType=”Either” requireAccess=”Script” />
</handlers>
</system.webServer>
</configuration>
- The topic ‘permalink issue on IIS 7’ is closed to new replies.