Help with RewriteRule syntax

Topics: User Forum
Aug 28, 2006 at 4:33 PM
User writes:
how to convert ...
to ...

Try this:

  1. translate %20 to dashes
RewriteRule ^/cf/featured_builder.cfm\?dest=^\&)\%20(^\&)$ /cf/$1-$2 L

  1. handle the case with no %20
RewriteRule ^/cf/featured_builder.cfm\?dest=^\&+)$ /cf/$1 L

you should read up on regular expressions, and check out the testdriver.exe program, which will let you test your rules without running in the server. see the readme for more info.