• Resolved richard12

    (@richard12)


    Hi, I am new to wordpress and find it incredible. The only problem I am having is combining the webconfig rules with ones I already have as I am parallel running a previous database on the site where I have installed wordpress.

    The global rule with wordpress works fine but I need to create url friendly urls for my existing urls. The example below is one that used to work but doesnt with the wordpress global rule.

    <rule name="Main Rule" stopProcessing="true">
                <match url=".*" />
                <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" />
            </rule>
    
        <rule name="RewriteUserFriendlyURL14" stopProcessing="true">
                        <match url="^visual/([^/]+)/([^/]+)/([^/]+)/?$" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="visual.asp?Keyword={R:1}&Mode={R:2}&Page={R:3}" />
                    </rule>

    I am using the permalinks to create urls with the post names. Does anyone know how to combine these rule types?
    Thanks in advance
    Richard

Viewing 1 replies (of 1 total)
  • Thread Starter richard12

    (@richard12)

    Hi, Just in case it could help anyone with the same issue, I was able to merge the new rules with the wordpress rule by changing this.

    <match url=”.*” />
    to
    <match url=”^(.*)/$” />

    Thanks
    Richard

Viewing 1 replies (of 1 total)
  • The topic ‘Webconfig with existing rules’ is closed to new replies.