.htaccess file
-
Hi all,
I’m trying to redirect my site from www. to non www. using the following code in a .htaccess file.
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.spreadbettingbeginner\.com [NC]
RewriteRule ^(.*)$ http://spreadbettingbeginner.com/$1 [L,R=301]I’m hoting on goDaddy, I couldn’t find a .htaccess file in my root directory so I created one. The thing is it’s not working. Can anyone help me as I’m going up the wall with this.
I want to do this to get better SEO and eliminate Google seeing my site as having duplicate content.
Any help or information from some one more experienced would be very much appreciated here.
Thanks,
Harry
The topic ‘.htaccess file’ is closed to new replies.