PDA

View Full Version : Sitemaps and Blogs



mimos
09-21-2009, 01:41 PM
If someone has a website that is being updated daily, it is not possible to generate a sitemaps for every new article. So what should someone do to have a correct sitemaps file?

Shopperama
09-21-2009, 01:51 PM
It depens on the platform. If you were using Wordpress for example there are plugins that will update as you add new content. Otherwise you may need to set up a cron job with a site map generator. Google xml-sitemaps or sitemap generator.

mimos
09-21-2009, 01:56 PM
I have a custom build my own php-mysql website, so i guess the solution is to build a function that edits the file and inserts the new link every time a new article is being posted.

angilina
09-21-2009, 05:24 PM
I have a custom build my own php-mysql website, so i guess the solution is to build a function that edits the file and inserts the new link every time a new article is being posted.

There are sites where you can create sitemap:

xml-sitemaps.com/

But there are limitations and I will prefer to have my own script/plugin/addon that can do this work.

Free scripts like Wordpress, MyBB etc have a simple solution: they have plugins that automatically create the sitemaps. But you have a custom build site so I guess you will have to build your own script. [I know only little about PHP/MYSQL, so this may not be a good suggestion] The wordpress plugin is written in PHP. How about you alter that plugin to work with your site? The plugins are free so I think we are allowed to use/alter them ?

If you have no other choice but to build your own script, then may be you should take care of duplicate URLs in sitemaps that can create in case of duplicate articles, removal of URLs if article are removed, if URL is changed, it gets changed in the sitemap too and etc.

mimos
09-21-2009, 05:33 PM
Every article is in a mysql table. So, to avoid duplicate URLs after article changes, I guess it would be better to create a new xml file every time a change is made. It's not so hard to make an automated process that does the job.

MayaLocke
09-28-2009, 09:29 AM
GSiteCrawler is a free tool that will automatically create sitemaps for you. I found it useful.

mimos
09-28-2009, 09:33 AM
Nice tool, but again, it doesnot update your sitemaps automaticaly as you post new articles on your site. Does it?

zinruss
09-28-2009, 10:10 AM
Download Google XML Sitemaps plugin, activate and create a sitemap. You can use the robots.txt file to inform search engines about your sitemap. If you activate this option at the administration panel, the plugin will try to create the file in your blog root.

Hope this help. :)

mimos
09-28-2009, 12:59 PM
The blog updates itself every 3 hours. Do this tool run by itself? Or I have to run it manually? Thats the reason for this thread :P

nichita2008
09-28-2009, 01:25 PM
What type of blog do you have ? For wordpress you can use a plugin called "sitemap". When you publish a new article, the sitemap is changed automaticaly.

mimos
09-28-2009, 01:30 PM
This is a blog-style custom site. www.free-ebooks.gr