Sir i want to redirect non www to www site but not working
Started on the old forum in December 2014 · view the original in the archive · old links redirect here
I also used
RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) http://www.example.com$1 [R=301,L] but it makes error in path
i also need htaccess code which will redirect my site example.com to http://www.example.com when my site viewed..
daizu wrote: i also need htaccess code which will redirect my site example.com to www.example.com when my site viewed..
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]