WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. alisyme
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic