Revision: 50906
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 8, 2011 06:32 by elvman
Initial Code
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com$1 [R=permanent,L] </IfModule>
Initial URL
Initial Description
This snippet checks if mod_rewrite is enabled and redirects example.com/some_uri to www.example.com/some_uri
Initial Title
Apache redirect to www
Initial Tags
Initial Language
Apache