URL Rewrite IIS Module works on directories but not files (1 post)

  1. alisyme
    Posted 2 years ago #

    Hi guys,

    I'm using this rule for my URL rewrites in web.config:

    				<rule name="Main Rule" patternSyntax="ECMAScript" stopProcessing="true">
    					<match url=".*" ignoreCase="false" />
    					<conditions logicalGrouping="MatchAll">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
    					<action type="Rewrite" url="index.php" logRewrittenUrl="true" />

    And this works on things like example.com/example/, but it seems to try rewrite the URL for my Logo in wp-content, so the logo doesn't show up.

    Any thoughts?


Topic Closed

This topic has been closed to new replies.

About this Topic