How can i change my perfered domain form non-www to www?

6 replies
  • SEO
  • |
can any one tell me that my site is 1. Don't set a preferred domain but i want to change to 2. Display URLs as www.recycleyourcars.com how can i verify that again?
#change #domain #form #nonwww #perfered #www
  • Profile picture of the author CharuAggarwal
    Hi, Its very simple, Just follow these steps:
    On the Search Console Home page, click the site you want.
    Click the gear icon , and then click Site Settings.
    In the Preferred domain section, select the option you want.
    Signature

    #DigitalScreaming

    {{ DiscussionBoard.errors[10553826].message }}
    • Profile picture of the author yukon
      Banned
      Originally Posted by CharuAggarwal View Post

      Hi, Its very simple, Just follow these steps:
      On the Search Console Home page, click the site you want.
      Click the gear icon , and then click Site Settings.
      In the Preferred domain section, select the option you want.


      That's fine for only Google WMT but doesn't solve the problem.

      Redirect the unwanted version to the version you want back on the actual domain.

      If you copy/paste the unwanted URL (www or non-www) into a browser search bar it needs to redirect to your chosen version of the domain URL. If it doesn't redirect to the chosen URL then you've failed, start over until it's right.
      {{ DiscussionBoard.errors[10554303].message }}
  • Profile picture of the author Big Squid
    Include this code in your .htaccess file.
    {{ DiscussionBoard.errors[10554435].message }}
  • Profile picture of the author Big Squid
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example.com [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
    {{ DiscussionBoard.errors[10554436].message }}
    • Profile picture of the author fabalpha1
      Originally Posted by Big Squid View Post

      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^example.com [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
      Where i read that ?
      {{ DiscussionBoard.errors[10571260].message }}
  • Profile picture of the author Big Squid
    Change the url, of course.
    {{ DiscussionBoard.errors[10554438].message }}

Trending Topics