web.config conflict on IIS
folder structure
docroot
|- wordpress
|- web.config
|- wp-content
|- japi
|- index.php
\- web.config
...
...
As you can see there are 2 web.config s. One in the wordpress folder and one in wordpress/wp-content/japi folder.
japi/web.config
rules
rule name="Imported Rule 1" stopProcessing="true"
match url="^(.*)$" ignoreCase="false" /
conditions
add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /
add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /
/conditions
action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" /
/rule
/rules
Now when I request for http://domain.com/wordpress/wp-content/japi/test. The japi/web.config seems to be neglected and only wordpress/web.config is being considered.
How can I fix this ?
Topic rewrite-rules url-rewriting Wordpress
Category Web