Welcome to WebmasterWorld Guest from 3.227.254.12

Forum Moderators: ocean10000

Message Too Old, No Replies

IIS 6 / Helicon Isapi 3 Rewrite

IIS 6 / Helicon Isapi 3 Rewrite

     
12:07 am on Apr 17, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 16, 2010
posts: 1
votes: 0


Hi, I'm trying to do a 301 redirect so that I can redirect

www.example.com/ACURA/CL/1997/2.2L-%204%20Cyl/AllCategory/SearchResultsPage.htm

TO

www.example.com/acura-cl-1997-2.2l.htm

So far, I've tried:

RewriteRule /ACURA/CL/1997/2.2L-%204%20Cyl/AllCategory/SearchResultsPage.htm http://www.example.com/acura-cl-1997-2.2l.htm [I,O,RP,L]


Here is what my .htaccess file currently looks like (which is working for other purposes)

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.69

# Start SEO Code

RewriteEngine On

# Forced Tier Linking Code
RewriteRule ^signup-([0-9]+)\.html$ http://www\.example\.com/rf/signup\.php?ref=$1 [R=301,L]

# TextAds
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)\.html$ http://www\.example\.com/rf/idevads\.php?id=$1&ad=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ http://www\.example\.com/rf/idevads\.php?id=$1&ad=$3&page=$4 [R=301,L]

# Custom Links
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-url\.html$ http://www\.example\.com/rf/id\.php?id=$1&keyword=$2&url=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-custom\.html$ http://www\.example\.com/rf/id\.php?id=$1&keyword=$2&custom=$3 [R=301,L]

# Standard Links
RewriteRule ^([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2&set=$3 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2&set=$3&link=$4 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5&custom=$6 [R=301,L]
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)\.html$ http://www\.example\.com/rf/id\.php?id=$1&page=$2&set=$3&link=$4&keyword=$5&custom=$6&url=$7 [R=301,L]

# End SEO Code


Can someone please help? Thanks.

[edited by: marcel at 10:55 am (utc) on Apr 17, 2010]

[edited by: Ocean10000 at 10:40 pm (utc) on Apr 17, 2010]
[edit reason] changed to example.com and delinked URLS in example code [/edit]

10:33 am on Apr 24, 2010 (gmt 0)

New User

5+ Year Member

joined:Mar 17, 2010
posts:10
votes: 0


Try using this:
RewriteRule ^/ACURA/CL/1997/2.2L-\ 4\ Cyl/AllCategory/SearchResultsPage\.htm$ http://www.example.com/acura-cl-1997-2.2l.html [R=301,L]


%20 should be "\ " (Escaped white-space) and . should be \. though it would probably work without escaping the dot.

I'm not 100% sure that this will work as I haven't tested it...
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members