Support » Fixing WordPress » web.config for permalinks when two sites are running in different directories

  • I have two separate installs of WP 3.5.2 on a Windows 2008 server (sure wish it were Linux). Both sites work, and on the primary site, pretty permalinks works. The web.config of the primary site ( is as follows:

    <rule name=”wordpress” enabled=”true” patternSyntax=”Wildcard”>
    <match url=”*” />
    <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” />
    <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” />
    <action type=”Rewrite” url=”index.php/{R:0}” />
    <remove fileExtension=”.eot” />
    <mimeMap fileExtension=”.eot” mimeType=”application/” />
    <remove fileExtension=”.ttf” />
    <mimeMap fileExtension=”.ttf” mimeType=”font/ttf” />
    <remove fileExtension=”.otf” />
    <mimeMap fileExtension=”.otf” mimeType=”font/otf” />
    <remove fileExtension=”.woff” />
    <mimeMap fileExtension=”.woff” mimeType=”font/x-woff” />
    <remove fileExtension=”.pdf” />
    <mimeMap fileExtension=”.pdf” mimeType=”application/pdf” />
    <mimeMap fileExtension=”.mp4″ mimeType=”video/mpeg” />
    <add path=”*”>
    <add provider=”ASPNET” areas=”Infrastructure,Module,Page,AppServices” verbosity=”Verbose” />
    <add provider=”WWW Server” areas=”Rewrite” verbosity=”Verbose” />
    <failureDefinitions timeTaken=”00:00:03″ />
    <requestLimits maxAllowedContentLength=”10000000″ />

    The other site is in a subdirectory of the main site called “( and it works fine but I cannot get pretty permalinks to work. I’ve tried NUMEROUS web.config options, but don’t know if I’m supposed to put a new web.config in that folder or add to the existing one here. Ideally, I want the configuration to be

  • The topic ‘web.config for permalinks when two sites are running in different directories’ is closed to new replies.