Skip to content

raymondlowe/Google-Search-Console-Add-Missing-Variations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google-Search-Console-Add-Missing-Variations

Google Search Console Add Missing Variations

When you add a site to Google Search Console it always reminds you to "add all variations" - that is http and https, and www and non-www.

But what if you have many sites already set up in the console with only one variation? These days Google may suddenly decide it prefers an alternative, and although rel=canonical and 301 redirects are supposed to teach Google which one to use, it doesn't always work.

To be safe, add all 4 variations of each domain you have.

An easy task if you have 2 or 3, but what if you have hundreds? Then this script will quickly go through all the possibilities and add in the missing ones.

You still need to do verification, but that may happen automatically, and at least this saves some typing and ensure you don't miss any.

The python script requires that you make a google api client secret and save it in a file called, client_secrets.json, in the same folder as the script.

About

Google Search Console Add Missing Variations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages