Manual creation of Google Sitemap in Magento
Posted by Tomislav Bilic under Magento @ 9th SEP 2008
Most of you probably know this, but let’s define what the sitemaps are. Sitemaps are a simple way for site creators to give search engines the information about pages on their site that are available for public. Basically, those are just 1 or more XML files that lists URLs for a site along with additional meta informatio about each URL (like last update, how often it changes, its importance relevant to other pages). With this in mind, search engines can be more clever while crawling the site. Click here see how sitemap of this site looks like.
You will hear the term Google Sitemap a lot, but XML Schema for the Sitemap protocol is not related only to Google at all. It can be used in many places, but the most important ones are Google Webmaster Tools and Yahoo! Site Explorer.
How do we create Google Sitemap in Magento?
1. Sitemap File Configuration
First we need to create sitemap file in Magento. This is basically pointer to tell Magento where to create sitemap file and how to name it. Log in to Magento Administration and go to:
Catalog -> Google Sitemap
Check to see if the sitemap file is already present. Lets assume we wish to create sitemap in the URL: http://www.yourstore.com/sitemap/sitemap.xml
To do it successfully,
- FTP to the server
- create sitemap folder
- chmod the folder to 777
On some servers, previous steps will not be required, but it is better to create the file first so that Magento can edit it.
Let’s go to Magento administration now and click on “Add Sitemap” button. Just insert the default values.
After this step, we just told Magento where to create sitemap file. It is not yet created.
2. Configure Sitemap
Sitemap can be configured from the interface System -> Configuration -> Catalog->Google Sitemap. If you are not sure what does it all mean, check XML Tag definitions section from “Sitemaps XML format” document.
3. Create Sitemap Manually
Looks like Magento folks were thinking that sitemap should only be created by a cron job. Yes, it can be done that way also. Be sure to read Wiki article How to Set Up a Cron Job to get familiar with it. If you are looking for manual creation, quit your search for “Create Sitemap” button. You will not find it. But there is a workaround. You can enter manual URL to execute sitemap creation:
http://www.yourstore.com/index.php/admin/sitemap/generate/sitemap_id/[ID of Sitemap from step 1]
Of course, replace the content with square brackets with actual Sitemap ID.
6 Responses to “Manual creation of Google Sitemap in Magento”
Leave a Reply
Post Meta
- September 9, 2008
- Magento
- 6 Comments
- Comments Feed
Categories:
- iPhone development (2)
- Magento (17)
- Online Marketing (4)
- Tools (10)
- Wordpress (8)
Recent Posts:
- 19 Nov How to use .swf ads in Go...
- 18 Nov What can you create with ...
- 15 Nov dotProject - Open Source ...
- 10 Nov 5 tips on using blogs to ...
- 08 Nov Advanced search in Magent...
- 06 Nov Online advertisement budg...
- 03 Nov Custom price filter in Ma...
- 02 Nov Getting started with iPho...
- 31 Oct How to track internal sit...
- 30 Oct Revolution 2 is launched
Thanks for this short but useful and informative HOWTO. It’s always the small things one can overlook.
Creating a sitemap is a must do step in order to get the Google see you’re site clearer and faster.
Thanks a bunch!! That was a very useful piece of info :).
Thank you, the manual url was exactly what I was looking for. Now if there was a way to hide certain pages from the sitemap that would be awesome as well.
Thanks for this post!
Thanks so much for the tip! Exactly what I was missing.
Now I have a question for the update of the sitemap. Do we need to manually set up a cron job like you refered to on step 3? Or is it enough to set up the cron in the admin?
Hi Tela,
Yes, you can set up a cron job in the Magento administration. If you have trouble with it, you can occasionally recreate the sitemap using the steps above.