XML sitemap

by 12 replies
15
HI -
I am backending a wordpress blog into my clients static website.

I just realized that I am not sure how to deal with the xml site map issue. Normally I just use a plugin for wordpress. But his static site also needs an XML site map. (Maybe a html site map also, but that is less important unless it is really easy)


Does someone know the best way to do this?
Do I need to have two site maps - have the webmaster create one for the static site and I do a separate one with a WP Plugin?
OR
Install the WP (it is going in a 'blog' directory) and then have the webmaster create an xml sitemap that will then automatically include the blog?

I was going to have the webmaster use xml-sitemap.com

thanks for any help
AP
#website design #sitemap #xml
  • Hi AP,

    If you're not using a plugin to generate the sitemap then you'll likely need to do a little dynamic sitemap yourself. The easiest way I've found to do this - is to load post urls from the db and loop through them to create xml data - using either php, or coldfusion or something to grab it from the db.

    Then do an url rewrite so that sitemap.xml directs to sitemap.php, or sitemap.cfm depending on your script.

    You can use this to generate dynamic sitemaps, and then to add in your other static sitemap, just add a reference in the dynamic one. Sitemap protocol allows for you to reference child sitemaps from a main one - so by attaching your static one that way you can always include it with your dynamic one.

    Good luck,

    Kris
  • If by 'backending' the blog into your client's site you mean that you're installing it in a directory under their existing domain, then you can tell the Google-XML-Sitemap-Generator plugin that the sitemap's in the site's root domain by specifying the absolute path and URL in the plugin settings. (Those settings are about half way down the screen).

    The sitemap plugin will then include all the files under the root domain - i.e. all directories on the site, including the blog.

    Cheers,

    Martin.
  • Neither way. If your clients static website need both XML and HTML, the most optimal solution for this is to get Sitemap Writer Pro program, which creates XML ad HTML sitemaps. I have it, works fine for me, also got it with a 35 % off discount coupon.
    • [ 2 ] Thanks
    • [1] reply
    • Didn't had knew that it's so easy to do. Thanks
  • thanks, useful topic
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • Sitemap Writer Pro is a professional and complete tool, which creates sitemaps with nearly 6 million URLs.
  • ^ It
  • Banned
    [DELETED]
  • I use this website to create xml site maps xml-sitemaps.com , pretty easy and i haven't had any trouble with it
  • You did not use plugin to generate the site map and then you create a simple dynamic site map because it’s an easiest way to load post urls from the db and loop through them to create xml data - using either php, or cold fusion or something to grab it from the db.
  • Why don't you just use a tool like GSiteCrawler to spider your website and locate all the pages? It will automatically create the xml sitemap for you.
  • XML sitemap is a XML file that contain information about one are more URLs in a websites and they information is stored and its help to search engine spider. All it needs to be is a list of URLs for your Web site, but to get more out of it, you want to include other information.
  • Banned
    [DELETED]
  • The sitemap writer pro program is the best option to choose if your clients static website needs both XML and XHTML.

Next Topics on Trending Feed