how do I redirect from one page to another with mod_rewrite?

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-06-03T11:57:42Z Indexed on 2010/06/03 15:04 UTC
Read the original article Hit count: 127

Filed under:
|
|

All the advice online says do: rewrite 301 URL-A URL-B

But that won't work if I turn on mod_rewrite (it seems?) with RewriteEngine on

So, I'm bad a regex, but shouldn't need it here. How do I do:

RewriteCond %{HTTP_HOST} ^untamed-adventures.com/travel/How/tabid/58/Default.aspx [NC] 

RewriteRule ^(.*)$ http://untamed-adventures.com/ [R=301,L]

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess