Google Sitemaps on a PHP site

I was taking a look at the Google Sitemaps thingy to see if it would be worth it as I guess a lot of developers/SEOers/web masters have done.

Since the first test one I did was on a static site and came back with no errors, it wasn’t exactly the most useful exercise in the world. To try and get something more useful out of it I decided to do one for DevBlog. Only problem is that it’s a PHP generated dynamic site so making the static XML file would take a bit of doing.

Luckily, you can get your server to read an XML document and parse the PHP tags by adding this to the httpd.conf

AddType application/x-httpd-php .xml

Unfortunatly, it’s a shared hosting server and it wouldn’t let me do this. So I decided to do one for my other dynamic blog, Wellsy’s World since that’s on my own server and I can just edit the httpd.conf itself.

It seems to working, Google says there’s no errors and it’ll get updated automatically but I still haven’t found a point of Google Sitemaps. Maybe there’ll be an increase in pages crawled but since Google has cached pretty much every page, it doesn’t really make much difference.

About the Author

I'm a web developer based in the East Midlands, UK and if I keep up the current rate, I might have developed 3 million sites by the time I retire