Kindly give your opinion
-
Hi friends,
I am building backlinks with the url https://abc.com
Does it make any difference to rankings if I do not build links with https://www.abc.com? If yes how should I redirect all links built with https://abc.com to https://www.abc.com?
I am feeling that Google is not indexing links in webmaster due to this.
please suggest.
-
Hi Kate,
Which version are preferred version of your site www or without www? if without www link backlinks must be with url https://abc.com and if www use https://www.abc.com
Also, be sure to go into webmaster tools and verify both the www and non www versions of your site, then select the preferred version
It needs to redirect in the case if preferred version is www and you are building link without www.
Hope this helps.
Thanks
-
Dear Alick300,
Thank you for the response. Preferred version are both. But as you said it should be one, is it mandatory to verify through webmaster as I have already done it with www.
How can I redirect links from https://abc.com to https://www.abc.com?
Kindly share.
-
Its bit confusing because in Google search console you can set only one version as preferred version and you must use only one version for seo.
- Add the following code into the .htaccess file. Be sure to substitute “example.com” with your own website information but touch nothing else.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Thanks
- Add the following code into the .htaccess file. Be sure to substitute “example.com” with your own website information but touch nothing else.
-
It is a great help. I will surely meticulously put this code without letting know anything else in this file. Can you clear my doubt if this code will apply to all urls such as inner pages I am building links with?
thank again.
-
Use below code (Ignore previous one that will work for http only)
<code># Redirect to www RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]</code>*It will support https and http both
Thanks