index.php on IIS
-
Hi,
I am using WordPress on IIS 7 server which already host my ASP site where my main index page is Default.aspx. I installed WordPress on the same server in the root directory so I can configure it to use my parent URL domain.com/post-name/ for better SEO results.index.php is added in the Default Document list however it is placed below Default.aspx.
WordPress works fine with the URL – domain.com/index.php/postname
However if I set the permalinks without index.php, I get page not found 404 (IIS error) and Default.aspx loads a file WebResource.axd which is trying to load the WordPress index.php file everytime I load the site.
I later found out that this was due to the Web rule:
<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>If I disable this rule my index page loads fast and without errors.
How do I go about fixing this so I can remove index.php from the URL and at the same time load my site index page without any errors?
- The topic ‘index.php on IIS’ is closed to new replies.