Forum Moderators: phranque

Message Too Old, No Replies

Trailing slash Mod Rewrite

Trailing slashand Mod Rewrite fix

         

GumbyDave

8:15 am on May 3, 2003 (gmt 0)

10+ Year Member



I've searched the apache docs, and if the answer is there, I can't find it.
I have rewritten some URLS like this:
[server.com...]

Fast is trying to index /Asin/ without the backslash. The problem is 11111111 is a different number for each URL, and I can't find anything on how to force a trailing backslash when the directory before the one not using the backslash changes every time. It would be easier to rewrite without the slash, but Google has already grabbed 100,000 pages... Any ideas?
Cheers,
Dave

GumbyDave

9:02 am on May 3, 2003 (gmt 0)

10+ Year Member



Here's the .htaccess:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)/(.*)/$ bookstore.cgi?input_item=$1&input_search_type=$2

Nice answering my own post, but FTR... I've been doing Google searches and coming up blank, did a forum search and found the fix:

RedirectMatch (.*)/Asin$ [server.com$1...]

Kudos for the great resource...