I just moved a client to a new host. I've set up 301 redirects multiple times but this is the first one with a hyphen. I assume we need a backslash before the hyphen --the same with before a period. It works fine. I just want to make sure this won't cause a problem elsewhere as I couldn't find instructions for this on the internet.
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^widget\-keyword\.com
RewriteRule ^(.*)$ http://www.widget-keyword.com/$1 [R=301,L]
[edited by: jdMorgan at 4:57 am (utc) on July 8, 2006]
[edit reason] De-linked [/edit]