• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SB_beginner

    (@sb_beginner)

    ok so I found the Redirection plugin for wordpress which on the face of it should do the job I am after. The thing is when I add the redirect for my homepage it never loads. It’s as if it’s constantly redirecting the page. Has anyone else had this experience. Is there a fix for this?

    I think you should be able to do this by going to Settings–> General, and just type http://yoursite.com in the WordPress address. I would assume WordPress would auto mod your .htaccess file as you want it.

    Thread Starter SB_beginner

    (@sb_beginner)

    I have that already but if you got the www. version you are not redirected to the non www. version. It’s drving me crazy and I know that this is going to affect my google rank.

    any other thoughts or suggestions?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘.htaccess file’ is closed to new replies.