Warning: include(inc/advertisment-small.html) [function.include]: failed to open stream: No such file or directory in /home/pureflash/public_html/Google-Sitemaps-Tutorial-how-to.php on line 26

Warning: include() [function.include]: Failed opening 'inc/advertisment-small.html' for inclusion (include_path='.:/usr/lib/php') in /home/pureflash/public_html/Google-Sitemaps-Tutorial-how-to.php on line 26

Google Sitemaps Tactics version 1.0

Google Sitemaps

Google Sitemaps is the best way to stay in touch with Google Index engine.

Why Google Sitemaps?

Because you have to!

Myself - Why and How I'm doing it

Well I don't have a shell access where I can engage Google Sitemap Generator, so I make my own personal sitemap generator, may be a little primitive, but IT WORKS fine for me

SiteMaps links and online generators

See in action

Google Sitemap Index File
Google sitemap file example

Prepare yourself for the Battle

Before continue, you need to set up a lot of things, here is my version of preparing.

Set up PHP Headers

	header("Last-Modified: ".date("Y-m-d", filemtime($_SERVER["SCRIPT_FILENAME"])));
	header("Content-Type: text/xml; charset=utf-8");
	

Set up Sitemap Header

	<urlset xmlns='http://www.google.com/schemas/sitemap/0.84'
	xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
	xsi:schemaLocation='http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd'>