httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] 301 redirects
Date Wed, 20 Feb 2008 01:53:01 GMT

Hi All,

I need to 301 rediect to I found two examples on google search

RewriteEngine on

RewriteCond %{http_host} ^ [nc]

RewriteRule ^(.*)$$1 [r=301,nc] and?? 

RewriteEngine on

RewriteCond %{http_host} ^mysite\.com$

RewriteRule ^.*$ {Request_URI} [R=permanent,L]

As you can see these two mod_rewrites are diferent, which one is correct? Or can I simply
use the redirect directive like this:

RedirectPermanent /

Thanks for any help you can give, I'm new to all this.


More new features than ever.  Check out the new AOL Mail ! -

View raw message