Webmaster Tools sitemap submission - google-search-console

Can anyone tell me how to add a site map in Google Webmaster Tools?

Go to the Sitemaps tool (also under Crawl → Sitemaps) and click "Add/Test Sitemap", enter the relative URL to a sitemap for that property and choose Submit.

You have to add this Sitemap to your Webmaster Tools: /sitemap_index.xml If you choose a "Sub-Sitemap" not all of your sites will be indexed.

Related

Error while Submitting SiteMap to Google Webmaster tools?

I was trying to submit my sitemap to google webmaster tools but it returns the error like “ Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead. ” I am using YOAST SEO and i tried to use XML Sitemap Generator plugin for wordpress.
enter image description here
So how can i fix this issue..
Check that your sitemap.xml file is actually properly formatted XML. You can use the XML validator here for example: https://www.xmlvalidation.com/
If it's a generated sitemap file it may contain errors making it validate as HTML or other by the Google Webmasters Tools

Redirect Github Pages to custom domain

I have created a Github Pages site and put it on repository abc of github account with username xyz.
So, my site is now live on xyz.github.io/abc
I created a cname file with my custom domain, and configured my DNS with the settings said on Github pages.
Now, my site is also live on mycustomdomain.com
Now, I don't want my site to be live on xyz.github.io/abc . I want it to redirect to mycustomdomain.com or not accessible.
Is there any way to do that?
I know that I can create User Pages site (with username.github.io) which will automatically redirect to custom domain, but I want to create project site.
Any suggestions?
A CNAME solution:
Sure. Github has a nice functionality for it.
When you create CNAME folder inside of your repo, you will be redirected:
https://help.github.com/articles/adding-a-cname-file-to-your-repository/
Check out my Github Pages website: https://github.com/ondrek/ondrek.github.io
( you can browse ondrek.com, but it's impossible to browse ondrek.github.io )
A JS solution:
If you want to redirect a custom page — the only possible solution will be javascript redirection.
if (window.location.href==="https://xyz.github.io") {
window.location.href = "https://mycustomdomain.com";
}
but it will not solve your problem with Google. You can solve this with correct using Google Webmaster Tools and tell to Google about the duplicate (for SEO purposes).
I had a GitHub Pages website (https://kamarada.github.io/), I moved it to GitLab (https://kamarada.gitlab.io/) and besides that I set up a custom domain on GitLab (https://linuxkamarada.com/). Now the question: how to make a 301 redirect from the GitHub Pages to the custom domain? Is that possible?
Well, as Ciro Santilli answered on this other question, there is no "beautiful non-plugin solution". Indeed, the solution I found is not beautiful, it is more kind of a workaround, but it works.
Inspired by the Samuel Ondrek answer on this same question (thanks a lot!), I set up CNAME redirection.
Go to your GitHub Pages repo, click Settings and below GitHub Pages, under Custom domain, enter your custom domain and click Save.
Now open another tab on your browser, open DevTools (F12), select the Network tab. Try to access your GitHub Pages website and see that a 301 redirect happens.
GitHub is going to complain that your domain is not configured properly:
Well, that does not really matter. What matters is that you have the 301 redirect required by the Google Search Console's Change of Address Tool and your website won't lose its Google ranking.
This might be a bit old but I'd still like to give an alternative answer to this. You can simply use meta refresh on your index.html
<meta http-equiv="refresh" content="1;url=http://example.com/" />
Then use a regular link (an a message also) on the page in case refresh stops. Though it is not recommended for SEO since google might index the blank page. But it would most likely work work.
You could use JavaScript to inspect the domain of the current page and redirect if necessary. If you go this route, the question and answer are already on SO:
Redirection based on URL - JavaScript

Removing crawing from search engine on my login page

I have a login page (login.aspx) that is currently indexed in google when somebody does a search.
I have created a robots.txt file with the following:
User-agent: *
Disallow: /login.aspx
My question is how long will it take effect to where my login.aspx page will no longer be indexed by google. Is there anything else necessary to tell Google not to index my login page?
It could take up to 90 days before the index is removed from google database but realistic a week or two to update. You could also ask google to remove that page on Webmaster Tools but will work the same way as the crawler.
You might also want to log in to Google Webmaster tools and use the "Remove URL" feature from Site Configuration/crawler access and also increase the crawling speed from Site Configuration/Settings . This might help accelerate the removal of the URL.

how to generate sitemap in joomla

How to generate site map in joomla. Can any one guide me the plugin required for sitemap.
XMap should do the trick.

Can we decide what should be our sitelinks in google?

I have a maths related site and google created the sitelinks for my site ,
:) :) google is giving my site some priority
and i'm using the google web master tools
And there is an option to block any unwanted links from that list...
But the sitelinks are not exactly the subcategories of my site.
Can we decide what should be our sitelinks in google?
Note: I tried to create a new tag as 'google-sitelinks' but without reputation i could not create such one.
From webmaster tools:
Google generates these links
automatically, but you can remove
sitelinks you don't want.
You cannot add your own, but you can remove them.
View this page on webmaster tools for more info.