Octopress Github Sitemap for Custom Domain and Webmaster Tools
Environment * Ruby 1.9.2p320 * Rails 3.2.3 * MAC OSX 10.7.3 * Editing with TextMate * iterm2
Octopress and sitemap
Here is a tutorial about creating a github blog using Octopress. It also shows how to setup a custom domain.
On github my URL is:
tomordonez.github.com
My custom domain is:
tomordonez.com
My sitemap is this:
tomordonez.com/sitemap
In the _config.yml I had the following:
url: http://tomordonez.github.com
I wanted to add the sitemap to my Webmaster tools account and it was giving me this error.
This url is not allowed for a Sitemap at this location.
I looked at my sitemap and it had links like this:
tomordonez.github.com/someposting...
Correct URL on config.yml
I realized that I didn’t have the correct URL in the _config.yml file.
I changed it from this:
url: http://tomordonez.github.com
To this:
url: http://tomordonez.com
Now the sitemap is corrected and can be submitted without Webmaster tools bitching about it.