Hello All,
Does anyone know of a good tutorial on how to setup a 301 redirect with ubuntu/apache2 ? And let me say that I am not entirely sure that a 301 is what I need. What I am trying to accomplish is have example.com go to www.example.com. From what I have read I should create an .htaccess file with:
but when i do this example.com comes up with an internal server error page. Should I create a virtual host example.com first then use .htaccess?Code:RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*) http://www.example.com/$1 [L,R=301]
Thanks to all,
Mark
Bookmarks