September 29, 2007

DYNAMIC XML SITEMAP GENERATOR

Filed under: Scripts Author: Cody

Download Site…

Dynamic XML Site Map Generator will automatically collect all of the pages from your website and create an xml sitemap for use by search engines such as Google Yahoo and MSN. This will help get your pages correctly indexed and once installed will automatically update every time you add or take away a web page from your site.

FAQ

Why do I need an XML sitemap?

Creating a search engine specific site map ensures that all of your pages can be found and indexed by the search engines. XML sitemaps are now supported by Google, Yahoo and MSN and can give the search engines more information than simply a URL.

What does the output of the xml mean?

The XML file that is created by the generator gives information about each of your web pages to the search engines.

<loc> Gives the URL of the page

<lastmod> Gives the date that the web page was last modified; this tells the search engine when there is a need to re-index your page or not.

<changefreq> Tells the search engine how often you anticipate the web page will be updated.

<priority> Gives a relative priority of your web pages.

If I set the priority to the highest on each page will this make the search engines think my pages are all very important?

No; this will not affect the ranking of the pages but merely give the search engines some idea of what you think are the most and least important pages on your site.

Share This Blog: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netscape
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

9 Comments »

  1. I made the changes in the script but am getting the following error:

    XML Parsing Error: junk after document element
    Location: http://www.shamar.org/xml-sitemap.php
    Line Number 2, Column 1:Warning: Invalid argument supplied for foreach() in /home/shamaror/public_html/xml-sitemap.php on line 148
    ^

    Any idea what is causing that error?

    Comment by Lee Underwood — October 3, 2007 @ 6:05 pm

  2. Whoops. I got it. I was referencing a directory that was created using a RewriteRule rule.

    Comment by Lee Underwood — October 3, 2007 @ 6:15 pm

  3. No problem Lee; glad you got there. :)

    Comment by Cody — October 3, 2007 @ 6:17 pm

  4. ASK also supports XML sitemaps. More will follow I think.

    Comment by Tom — November 15, 2007 @ 2:15 pm

  5. x dragonball gohan dragonball x htm

    Comment by of dragonball x — January 21, 2008 @ 8:00 am

  6. good site nzisfw

    Comment by ok — September 25, 2008 @ 7:52 am

  7. i made the changes you asked to but i m having a warning

    XML Parsing Error: junk after document element
    Location: http://localhost/travel/xml-sitemap.php
    Line Number 2, Column 1:Warning: scandir(../www/) [function.scandir]: failed to open dir: No error in D:\wamp\www\travel\xml-sitemap.php on line 115
    ^

    can you tell me the reason plz, thankyou so much in advance

    Comment by Sha — October 5, 2009 @ 11:27 am

  8. Looks like a path error to me Sha.

    Comment by Cody — October 5, 2009 @ 5:47 pm

  9. I am getting the exact same error as Sha. Can someone tell me why? Thank you.

    Comment by duc — June 3, 2010 @ 2:40 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress