Return to Snippet

Revision: 42926
at March 13, 2011 05:14 by jacksaidwhat


Updated Code
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Revision: 42925
at March 13, 2011 05:11 by jacksaidwhat


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

Revision: 42924
at March 13, 2011 05:09 by jacksaidwhat


Updated Code
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

Revision: 42923
at March 13, 2011 05:07 by jacksaidwhat


Initial Code
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Initial URL

                                

Initial Description

                                

Initial Title
.htaccess Redirect (301): Non-WWW to WWW

Initial Tags
redirect

Initial Language
Apache