apache 301 转向reference

前几天被nginx 的301 转向,从non-www 转向www 做了一份记录,作为备用

今天再加一份apache 的 301 转向的备用

 

RewriteEngine On
RewriteCond %{HTTP_HOST} ^iamhippo.com$ [NC]
RewriteRule ^(.*)$ http://www.iamhippo.com/$1 [L,R=301]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.