WordPress.org

Ready to get started?Download WordPress

Forums

Help with URL re-writing on iis7 (1 post)

  1. dbramley
    Member
    Posted 3 years ago #

    Hi,
    Can anyone help me with URL rewriting please?

    I have WordPress installed and have the following web.config file for use with rewriting the wordpress url's:

    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*"/>
    <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
    <add input="/forum" negate="true" matchType="IsDirectory" />
    </conditions>
    <action type="Rewrite" url="index.php"/>
    </rule></rules>
    </rewrite>
    </system.webServer>
    </configuration>

    This works fine and I have no issues.

    My problem is trying to get WebWizForums url rewriting working in conjunction with wordpress.

    If I upload the WebWizForum web.config one into my /forum folder then I receive page not found errors.

    I *think* I need to exclude my /forum directory from being re-written in the wordpress web.config file but I'm not really sure.

    If it helps, this is the forum web.config file:

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Web Wiz URL Rewrite release 1.7

    ****************************************************************************************
    ** Copyright Notice
    **
    ** Web Wiz Forums(TM)
    ** http://www.webwizforums.com
    **
    ** Copyright (C)2009-2011 Web Wiz(TM). All Rights Reserved.
    **
    ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS UNDER LICENSE FROM 'WEB WIZ'.
    **
    ** IF YOU DO NOT AGREE TO THE LICENSE AGREEMENT THEN 'WEB WIZ' IS UNWILLING TO LICENSE
    ** THE SOFTWARE TO YOU, AND YOU SHOULD DESTROY ALL COPIES YOU HOLD OF 'WEB WIZ' SOFTWARE
    ** AND DERIVATIVE WORKS IMMEDIATELY.
    **
    ** If you have not received a copy of the license with this work then a copy of the latest
    ** license contract can be found at:-
    **
    ** http://www.webwiz.co.uk/license
    **
    ** For more information about this software and for licensing information please contact
    ** 'Web Wiz' at the address and website below:-
    **
    ** Web Wiz, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, BH15 4JD, England
    ** http://www.webwiz.co.uk
    **
    ** Removal or modification of this copyright notice will violate the license contract.
    **
    ****************************************************************************************
    -->
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>

    <!-- forum_posts.asp -->
    <rule name="forum_posts 1">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=([0-9]+)&KW=(.*)&PID=([0-9]+)&title=(.*)#" ignoreCase="true" />
    <add input="{QUERY_STRING}" pattern="^(.*)TID=([0-9]+)&KW=(.*)&PID=([0-9]+)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:5}_topic{C:2}_post{C:4}.html?KW={C:3}#{C:4}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 2" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)_post(.*)\.html(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)KW=(.*)#" ignoreCase="true" />
    <add input="{QUERY_STRING}" pattern="^(.*)KW=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}&PID={R:4}&KW={C:2}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 3">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=([0-9]+)&KW=(.*)&PN=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:5}_topic{C:2}_page{C:4}.html?KW={C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 4" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)_page(.*)\.html(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)KW=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}&PN={R:4}&KW={C:2}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 5">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=([0-9]+)&KW=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:4}_topic{C:2}.html?KW={C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 6" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)\.html(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)KW=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}&KW={C:2}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 7">
    <match url="^forum_posts.asp(.*)" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PN=(.*)&title=(.*)" ignoreCase="false" />
    </conditions>
    <action type="Redirect" url="{C:4}_topic{C:2}_page{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_posts 8" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)_page(.*)\.html" ignoreCase="false" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}&PN={R:4}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 9">
    <match url="^forum_posts.asp(.*)" ignoreCase="false" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&SID=(.*)&title=(.*)#" ignoreCase="false" />
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&SID=(.*)&title=(.*)" ignoreCase="false" />
    </conditions>
    <action type="Redirect" url="{C:5}_topic{C:2}_post{C:3}_SID{C:4}.html#{C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 10" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)_post(.*)_SID(.*)\.html" ignoreCase="false" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}&PID={R:4}&SID={R:5}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 11">
    <match url="^forum_posts.asp(.*)" ignoreCase="false" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&title=(.*)#" ignoreCase="false" />
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&title=(.*)" ignoreCase="false" />
    </conditions>
    <action type="Redirect" url="{C:4}_topic{C:2}_post{C:3}.html#{C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 12" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)_post(.*)\.html" ignoreCase="false" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}&PID={R:4}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 13">
    <match url="^forum_posts.asp(.*)" ignoreCase="false" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&SID=(.*)#" ignoreCase="false" />
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)&SID=(.*)" ignoreCase="false" />
    </conditions>
    <action type="Rewrite" url="topic{C:2}_post{C:3}_SID{C:4}.html&#{C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 14" stopProcessing="true">
    <match url="^topic([0-9]+)(.*)_post(.*)_SID(.*)\.html" ignoreCase="false" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:1}{R:2}&PID={R:3}&SID={R:4}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 15">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAny">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)#" ignoreCase="true" />
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PID=([0-9]+)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="topic{C:2}_post{C:3}.html#{C:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_posts 16" stopProcessing="true">
    <match url="^topic([0-9]+)(.*)_post(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:1}{R:2}&PID={R:3}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 17">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:3}_topic{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_posts 18" stopProcessing="true">
    <match url="^(.*)_topic([0-9]+)(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:2}{R:3}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 19">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)&PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="topic{C:2}_page{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_posts 20" stopProcessing="true">
    <match url="^topic([0-9]+)(.*)_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:1}{R:2}&PN={R:3}" appendQueryString="false" />
    </rule>

    <rule name="forum_posts 21">
    <match url="^forum_posts\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)TID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="topic{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_posts 22" stopProcessing="true">
    <match url="^topic([0-9]+)(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_posts.asp?TID={R:1}{R:2}" appendQueryString="false" />
    </rule>

    <!-- forum_topics.asp -->
    <rule name="forum_topics 1">
    <match url="^forum_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)FID=(.*)&PN=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:4}_forum{C:2}_page{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_topics 2" stopProcessing="true">
    <match url="^(.*)_forum([0-9]+)(.*)_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_topics.asp?FID={R:2}{R:3}&PN={R:4}" appendQueryString="false" />
    </rule>
    <rule name="forum_topics 3">
    <match url="^forum_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)FID=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:3}_forum{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_topics 4" stopProcessing="true">
    <match url="^(.*)_forum([0-9]+)(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_topics.asp?FID={R:2}{R:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_topics 5">
    <match url="^forum_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)FID=(.*)&PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="forum{C:2}_page{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_topics 6" stopProcessing="true">
    <match url="^forum([0-9]+)(.*)_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_topics.asp?FID={R:1}{R:2}&PN={R:3}" appendQueryString="false" />
    </rule>
    <rule name="forum_topics 7">
    <match url="^forum_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)FID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="forum{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="forum_topics 8" stopProcessing="true">
    <match url="^forum([0-9]+)(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="forum_topics.asp?FID={R:1}{R:2}" appendQueryString="false" />
    </rule>

    <!-- default.asp -->
    <rule name="default 1">
    <match url="^default\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)C=(.*)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="{C:3}_forums_cat{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="default 2" stopProcessing="true">
    <match url="^(.*)_forums_cat([0-9]+)(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="default.asp?C={R:2}{R:3}" appendQueryString="false" />
    </rule>

    <rule name="default 3">
    <match url="^default\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)SID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="forums.html?SID={C:2}" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="default 4" stopProcessing="true">
    <match url="^forums\.html(.*)" ignoreCase="true" />
    <action type="Rewrite" url="default.asp{R:1}" />
    </rule>

    <rule name="default 5">
    <match url="^default\.asp(.*)" ignoreCase="true" />
    <action type="Redirect" url="forums.html" redirectType="Permanent" />
    </rule>
    <rule name="default 6" stopProcessing="true">
    <match url="^forums\.html" ignoreCase="true" />
    <action type="Rewrite" url="default.asp" />
    </rule>

    <!-- active_users.asp -->
    <rule name="active_users 1">
    <match url="^active_users\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)SID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="active_forum_members.html?SID={C:2}" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="active_users 2" stopProcessing="true">
    <match url="^active_forum_members\.html(.*)" ignoreCase="true" />
    <action type="Rewrite" url="active_users.asp{R:1}" />
    </rule>

    <rule name="active_users 3">
    <match url="^active_users\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="active_forum_members.html{C:1}" redirectType="Permanent" />
    </rule>
    <rule name="active_users 4" stopProcessing="true">
    <match url="^active_forum_members\.html(.*)" ignoreCase="true" />
    <action type="Rewrite" url="active_users.asp{R:1}" />
    </rule>

    <!-- help.asp -->
    <rule name="help 1">
    <match url="^help\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)SID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="forum_FAQ.html?SID={C:2}" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="help 2" stopProcessing="true">
    <match url="^forum_FAQ\.html(.*)" ignoreCase="true" />
    <action type="Rewrite" url="help.asp{R:1}" />
    </rule>

    <rule name="help 3">
    <match url="^help\.asp" ignoreCase="true" />
    <action type="Redirect" url="forum_FAQ.html" redirectType="Permanent" />
    </rule>
    <rule name="help 4">
    <match url="^forum_FAQ\.html" ignoreCase="true" />
    <action type="Rewrite" url="help.asp" />
    </rule>

    <!-- active_topics.asp - unaswered topics -->
    <rule name="unaswered topics 1">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^UA=Y&PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="unawsered_forum_topics_page{C:1}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="unaswered topics 2" stopProcessing="true">
    <match url="^unawsered_forum_topics_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?UA=Y&PN={R:1}" appendQueryString="false" />
    </rule>

    <rule name="unaswered topics 3">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^UA=Y(.*)&PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="unawsered_forum_topics_{C:1}_page{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="unaswered topics 4" stopProcessing="true">
    <match url="^unawsered_forum_topics_(.*)_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?UA=Y{R:1}&PN={R:2}" appendQueryString="false" />
    </rule>

    <rule name="unaswered topics 5">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^UA=Y(.*)AT=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="unawsered_forum_topics_date-range{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="unaswered topics 6" stopProcessing="true">
    <match url="^unawsered_forum_topics_date-range(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?UA=Y&AT={R:1}" appendQueryString="false" />
    </rule>

    <rule name="unaswered topics 7">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^UA=Y(.*)&SID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="unawsered_forum_topics.html" appendQueryString="true" redirectType="Permanent" />
    </rule>:
    <rule name="unaswered topics 8" stopProcessing="true">
    <match url="^unawsered_forum_topics_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp" />
    </rule>

    <rule name="unaswered topics 9">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^UA=Y(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="unawsered_forum_topics.html" appendQueryString="true" redirectType="Permanent" />
    </rule>
    <rule name="unaswered topics 10" stopProcessing="true">
    <match url="^unawsered_forum_topics\.html(.*)" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp" />
    </rule>

    <!-- active_topics.asp - new topics -->
    <rule name="new topics 1">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)&PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="new_forum_topics_{C:1}_page{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="new topics 2" stopProcessing="true">
    <match url="^new_forum_topics_(.*)_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?{R:1}&PN={R:2}" appendQueryString="false" />
    </rule>

    <rule name="new topics 3">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)PN=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="new_forum_topics_page{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="new topics 4" stopProcessing="true">
    <match url="^new_forum_topics_page(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?PN={R:1}" appendQueryString="false" />
    </rule>

    <rule name="new topics 5">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)AT=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="new_forum_topics_date-range{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="new topics 6" stopProcessing="true">
    <match url="^new_forum_topics_date-range(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp?AT={R:1}" appendQueryString="false" />
    </rule>

    <rule name="new topics 7">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)SID=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="new_forum_topics.html" appendQueryString="true" redirectType="Permanent" />
    </rule>
    <rule name="new topics 8" stopProcessing="true">
    <match url="^new_forum_topics_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp" />
    </rule>

    <rule name="new topics 9">
    <match url="^active_topics\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="new_forum_topics.html" appendQueryString="true" redirectType="Permanent" />
    </rule>
    <rule name="new topics 10" stopProcessing="true">
    <match url="^new_forum_topics\.html" ignoreCase="true" />
    <action type="Rewrite" url="active_topics.asp" />
    </rule>

    <!-- calendar.asp -->
    <rule name="calendar 1">
    <match url="^calendar\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)M=(.*)&Y=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="calendar_month_{C:2}_year_{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="calendar 2" stopProcessing="true">
    <match url="^calendar_month_(.*)_year_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="calendar.asp?M={R:1}&Y={R:2}" appendQueryString="false" />
    </rule>

    <rule name="calendar 3">
    <match url="^calendar_week\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)M=(.*)&Y=(.*)&W=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="calendar_week_{C:4}_month_{C:2}_year_{C:3}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="calendar 4" stopProcessing="true">
    <match url="^calendar_week_(.*)_month_(.*)_year_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="calendar_week.asp?M={R:2}&Y={R:3}&W={R:1}" appendQueryString="false" />
    </rule>

    <rule name="calendar 5">
    <match url="^calendar_year\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)Y=(.*)&DB=(.*)&(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="calendar_{C:2}_{C:4}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="calendar 6" stopProcessing="true">
    <match url="^calendar_(.*)_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="calendar_year.asp?Y={R:1}&{R:2}" appendQueryString="false" />
    </rule>

    <rule name="calendar 7">
    <match url="^calendar_year\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)Y=(.*)&DB=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="calendar_{C:2}.html" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="calendar 8" stopProcessing="true">
    <match url="^calendar_(.*)\.html" ignoreCase="true" />
    <action type="Rewrite" url="calendar_year.asp?Y={R:1}" appendQueryString="false" />
    </rule>

    <!-- RSS -->
    <rule name="RSS 1">
    <match url="^RSS_calendar_feed\.asp" ignoreCase="true" />
    <action type="Redirect" url="RSS_calendar_feed.xml" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="RSS 2" stopProcessing="true">
    <match url="^RSS_calendar_feed\.xml" ignoreCase="true" />
    <action type="Rewrite" url="RSS_calendar_feed.asp" />
    </rule>

    <rule name="RSS 3">
    <match url="^RSS_post_feed\.asp" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)?TID=([0-9]+)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="RSS_{C:3}_topic{C:2}.xml" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="RSS 4" stopProcessing="true">
    <match url="^RSS_(.*)_topic(.*)\.xml" ignoreCase="true" />
    <action type="Rewrite" url="RSS_post_feed.asp?TID={R:2}" appendQueryString="false" />
    </rule>

    <rule name="RSS 5">
    <match url="^RSS_topic_feed\.asp" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)?FID=([0-9]+)&title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="RSS_{C:3}_forum{C:2}.xml" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="RSS 6" stopProcessing="true">
    <match url="^RSS_(.*)_forum(.*)\.xml" ignoreCase="true" />
    <action type="Rewrite" url="RSS_topic_feed.asp?FID={R:2}" appendQueryString="false" />
    </rule>

    <rule name="RSS 7">
    <match url="^RSS_topic_feed\.asp(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll">
    <add input="{QUERY_STRING}" pattern="^(.*)?title=(.*)" ignoreCase="true" />
    </conditions>
    <action type="Redirect" url="RSS_{C:2}.xml" appendQueryString="false" redirectType="Permanent" />
    </rule>
    <rule name="RSS 8" stopProcessing="true">
    <match url="^RSS_(.*)\.xml" ignoreCase="true" />
    <action type="Rewrite" url="RSS_topic_feed.asp" />
    </rule>

    </rules>
    </rewrite>

    <caching>
    <profiles>
    <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" />
    <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" />
    <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" />
    </profiles>
    </caching>

    </system.webServer>
    </configuration>

    Any suggestions?

    Thanks!
    Dan

Topic Closed

This topic has been closed to new replies.

About this Topic