• Hi guys,

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

    <rewrite>
    			<rules>
    				<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" />
    					</conditions>
    					<action type="Rewrite" url="index.php" logRewrittenUrl="true" />
    				</rule>
    			</rules>
    		</rewrite>

    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?

    Ali

  • The topic ‘URL Rewrite IIS Module works on directories but not files’ is closed to new replies.