Magento google sitemap generation on multistore setup

Friday, 15. February 2013

If you have tried to install/configure sitemaps for a multi-store magento installation on latest versions (1.6+) – you may have come across a situation where you could not create a file with a different name other than “sitemap.xml”

These changes are only available on latest version and I personally don’t understand the main reason behind it other than the fact that its probably easier for Search Bots?!

Anyway, to work around this problem – you will need to create your sitemaps on sub-folders and use your robots.txt file to communicate with bots on locations of your sitemap files.

You could have a folder structure such as this:

sitemaps/store1
sitemaps/store2
etc

You then set up the sitemap.xml file to be generated to each sub-folder respectively of each store

And finally, define the locations on your robots.txt file as such

# Website Sitemap
Sitemap: http://yourdomain.com/itemaps/store1/sitemap.xml
Sitemap: http://yourdomain.com/itemaps/store2/sitemap.xml

src refspec master does not match any : failed to push some refs

Thursday, 7. February 2013

I have had this error after moving repository to another account. There are various factors that may cause such problem but since I was sure our git framework covered all the basics, i was a little suprised as to why I keep having this issue.

error: src refspec master does not match any.
error: failed to push some refs to '/path/repo.git'

After a bit of cross referencing, I indeed notice the head information was not being created when we initiated repository under the new account under (your_repo.git/refs/heads)

In the end it turned out the issue was simply because there was no user details registered in git config for the account we were currently using. So afterall the frameworks was not covering all the basics by the looks of things!! :)

Anyway, to solve it.. simply add the following basic details and you will be sorted

git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL"