• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

NEED URGENT HELP: Query Related To Google Search Console!

alchemyst

Active member
Feb 24, 2020
297
106
43
Hello Guys!

Need some urgent help on this one.

I want to ask does google treat www and non-www versions of my site as two completely different websites?

Here is the issue I am facing. My current live site is on the non-www version and I did the mistake of submitting my site to google search console using www version (Yup, foolish of me, I know :D).

Although I have submitted the correct version to GSC too (non-www), I was wondering what else do I need to do to fix this.

Appreciate any help.

Thanks.
 
Just do a permanent redirect (301) in your .htaccess file, like so:
Code:
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

This assumes your website has an SSL-certificate, in other words https instead of http
Add the above code to the top of your .htaccess file.
 
  • Like
Reactions: alchemyst
Hey @frizzel

Thank you for taking the time to reply. :)

I will create a 301 redirect right now as directed.

One other doubt that I am having is, right now on my GSC I have two sitemaps submitted.
One for the www version(which isn't my live site) and one for non-www version which is in fact the live site.

Some www versions of my site are appearing in SERPs.

So will the redirect take care of the sitemap as well and can I remove the non-existent www property from the GSC completely once I have set the redirect so that only the non-www results remain in SERPs?

Please advise.

Thanks :)
 
Yes, you should remove the www-sitemap from GSC.

Because you have a permanent redirect, over time Google will replace the www-versions with the non-www versions. But give it time, be patient, it can take from weeks to months. Re-submitting your non-www-sitemap might help, but that's not guaranteed.
 
  • Like
Reactions: alchemyst
Brilliant, I will get on it straight away.

One last thing, just clarifying,in the code snippet shared above I don't need to put in my site URL right?

I see the logic behind it, redirect everything www to https://

P.S. : Yes, my site is indeed has secure SSL certificate.
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock