howto 301 rewrite form asp to htm

Feb 28, 2008 at 2:19 AM
301 rewrite ?
Feb 28, 2008 at 5:29 AM
You probably mean this...

A user enters the following URL:

and you want it processed by:

The rule would look something like this:

RewriteRule ^/(\d+).htm$ /list.asp?id=$1

I'm assuming that you'll always have digits for the ID.

Your best bet is to read the manual, it really does spell a majority of things out. And bone-up on your Regular Expressions; I use Expresso (freeware RegEx builder and tester).

Best of luck!
Feb 28, 2008 at 2:03 PM
Edited Feb 28, 2008 at 2:05 PM
no I mean
a user enters the following
301 rewrite to
what is rule ?
thank a lot !