This App is No Longer Maintained. Visit the Replacement at

StrokesPlus Forum
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
 All Forums
 General Discussion
 Off Topic
 Friendly URLs

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

Check here to subscribe to this topic.

T O P I C    R E V I E W
shroom Posted - 03/23/2014 : 07:54:46
Hi Rob,

I emailed you several times a few years ago concerning S+. I think my old username was 'fug'. I still use S+ regularly on every PC.

I have a completely OT question. I see you're using snitz forums for this site, which is written in classic ASP. How are you getting it to work with SEO friendly URLs? IOW, how/where are you handling the rewrite rules?

2   L A T E S T    R E P L I E S    (Newest First)
shroom Posted - 03/23/2014 : 13:58:07
Hey, man! Thanks! I have URLRewrite installed already. I'll look through what you posted above and figure it out. I didn't realize URLRewrite would work with classic ASP. I really don't know why... I have it working for a couple of PHP sites running on IIS8, so it should work for ASP as well.

Thanks again!

Rob Posted - 03/23/2014 : 12:45:03
Hiya fug!

I just installed the URL Rewrite IIS extension and defined the rewrite rules. Then I did a search through all of the Snitz ASP pages for ".asp" and updated its link generation code points accordingly. Here's the rewrite config section (from web.config) for the site for reference.

                <clear />
                <rule name="CanonicalHostNameRule1">
                    <match url="(.*)" />
                        <add input="{HTTP_HOST}" pattern="^www\.strokesplus\.com$" negate="true" />
                    <action type="Redirect" url="{R:1}" />
                <rule name="LowerCaseRule1" stopProcessing="true">
                    <match url="[A-Z]" ignoreCase="false" />
                    <action type="Redirect" url="{ToLower:{URL}}" />
                <rule name="RemoveTrailingSlashRule1" enabled="false" stopProcessing="true">
                    <match url="(.*)/$" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    <action type="Redirect" url="{R:1}" />
                <rule name="Downloads" stopProcessing="true">
                    <match url="^downloads/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="/forum/forum.asp?FORUM_ID=6" />
                <rule name="Scripts">
                    <match url="^scripts/(\d*)$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="/script_detail.asp?scrid={R:1}" />
                <rule name="Script Types">
                    <match url="^scripts/type/(\d*)$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="/script_type.asp?sctid={R:1}" />
                <rule name="Windows 8 Notes Post" stopProcessing="true">
                    <match url="^windows8/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Redirect" url="" />
                <rule name="Custom Config Path" stopProcessing="true">
                    <match url="^customconfig/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Redirect" url="/forum/topic.asp?TOPIC_ID=347" />
                <rule name="Topic: Old Pattern" enabled="true" stopProcessing="true">
                    <match url="^forum/topic\.asp$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{QUERY_STRING}" pattern="^TOPIC_ID=(\d+)+$" />
                    <action type="Redirect" url="/forum/topic/{C:1}/" appendQueryString="false" redirectType="Permanent" />
                <rule name="Forum: Topic View" stopProcessing="true">
                    <match url="^forum/topic/(\d+)(/([0-9a-zA-Z\-]+))?/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="forum/topic.asp?TOPIC_ID={R:1}" />
                <rule name="Forum: Main" stopProcessing="true">
                    <match url="^forum/(\d+)(/([0-9a-zA-Z\-]+))?/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="forum/forum.asp?FORUM_ID={R:1}" />
                <rule name="Forum: Category" stopProcessing="true">
                    <match url="^forum/cat/(\d+)(/([0-9a-zA-Z\-]+))?/?$" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                    <action type="Rewrite" url="forum/default.asp?CAT_ID={R:1}" />
                <rule name="Forum: Old Pattern" stopProcessing="true">
                    <match url="^forum/forum\.asp$" />
                        <add input="{QUERY_STRING}" pattern="^FORUM_ID=(\d+)+$" />
                    <action type="Redirect" url="/forum/{C:1}/" appendQueryString="false" />
                <rule name="Category: Old Pattern" stopProcessing="true">
                    <match url="^forum/default\.asp$" />
                        <add input="{QUERY_STRING}" pattern="^CAT_ID=(\d+)+$" />
                    <action type="Redirect" url="forum/cat/{C:1}" appendQueryString="false" />
                <rule name="Outbound: Remove Trailing Question Mark" enabled="true">
                    <match filterByTags="A" pattern="(.*)\?$" />
                    <action type="Rewrite" value="{R:1}" />
                <rule name="Outbound: Remove Trailing Slash">
                    <match filterByTags="A" pattern="(/forum/topic/(.*))/$" />
                    <action type="Rewrite" value="{R:1}" />

StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000