Avatar of CAE5942
CAE5942
 asked on

XML site map that automatically updates

Hi everyone,

I used one of those free xml site map generators freely available on the internet to generate a site map of my website. I then uploaded this to my web server and submitted the site map on Google Webmaster Tools. The problem with this is that I will need to keep re-generating, uploading and re-submitting the site map every time the site changes.

I wondered if anyone could tell me if there is a way to have the site map update automatically when the site changes so that it's less time-consuming and more efficient? The site is built on the Magento platform so uses PHP as the base language.

Would really appreciate any advice.
XMLSearch Engine Optimization (SEO)PHPMagento

Avatar of undefined
Last Comment
CAE5942

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David H.H.Lee

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
CAE5942

ASKER
Great - thanks for the link. I'll have a look.

Much appreciated.
CAE5942

ASKER
Hi, I've taken a look at the suggested link and it looks like something that could work. As mentioned in my original post, I've already submitted a site map to Google so once I get Magento to create the new map and have it update automatically, will I need to re-submit the map or if I call it the same file name as my current site map, i.e. sitemap.xml, will Google know that it's changed and just re-crawl it as it updates?

Thanks again for your help.
SOLUTION
Dave Baldwin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
CAE5942

ASKER
Thanks for the reply,

Google reloads my 'sitemap.xml' periodically so you probably can just update the file on your site

When you say that I can probably just update the file on the site, do you mean that I can just let Magento automatically update it using the cron script? So I would never have to do it manually as it's being handled by Magento?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Dave Baldwin

I don't know about Magento.  If it updates the 'sitemap.xml' file periodically, that should work.  Note that Google checks your sitemap file on it's own schedule.
CAE5942

ASKER
Ok no problem. Thanks for the help.