Mobile app version of vmapp.org
Login or Join
Frith620

: What is in the web.config that is in your /blog directory? For WordPress to work correctly you just need a very minimal URL rewrite rule which is allowed to be set on sub-directories: <?xml

@Frith620

What is in the web.config that is in your /blog directory? For WordPress to work correctly you just need a very minimal URL rewrite rule which is allowed to be set on sub-directories:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<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>
</system.webServer>
</configuration>


If you really need to set configuration settings that can only be set at the application root (can't think of any) you can always turn the /blog directory into it's own application. This can be done from the IIS Manager. Expand the website and drill down to the 'blog' directory. Right-click on the directory and click 'Convert to application'. The defaults in the dialog that shows up should be OK but you can optionally choose to run WordPress in a different app pool.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme