Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

CurtisOdenSpencerMcericgillettejsebean +7 guests

Sitemaps relatively easy to setup, follow these instructions...

This discussion is related to the Sitemaps addon.
1) extract plug-in to plugins folder.
2) Point to /plugin/sitemaps/build in a browser
3) Check in cache that there is a sitemaps folder, and there are some sitemaps files in it.
4) In dashboard create a route expression: sitemap.([^\.]+).xml, target: cache/sitemaps/sitemap.$1.xml, type:internal.

You can view the site map index at /sitemaps.$1.xml, it list the sitemap location, which you can view also.

grep is your friend.

Tagged:
«1

Comments

  • I tried this but I get this message:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    404
    Page not found.
  • just tried it again and it now works, thanks a lot.
    After step 4, I visited /sitemap.index.xml and It gave me the link to my sitemap.
    Thanks again
  • x00x00
    Posts: 1,546
    sorry that was a typo I ment vist sitemap.index.xml lol

    sitemaps.$1.xml is a regex substitution.

    grep is your friend.

  • Posts: 177
    The problem I'm having still is that when I look in

    http://www.delayofgame.ca/sitemap.index.xml

    I just get:

    <Exception
    <C0de>404</C0de>
    <Message>Page not found.</Message>
    </Exception>
  • Posts: 177
    but in /cache/sitemaps/ there are 2 files.

    sitemaps.index.xml with the above contents and sitemap.5a181a7368794f045fcb2d8953de5fc7010a14e4.xml with what appears to be a real sitemap.


    what should I do?
  • x00x00
    Posts: 1,546
    You need to create a route as in step 4

    grep is your friend.

  • x00x00
    Posts: 1,546
    route expression: sitemap.([^\.]+).xml, target: cache/sitemaps/sitemap.$1.xml

    grep is your friend.

  • Posts: 177
    I swear thats what I did the first time I tried. seems to work now. sitmap seems to bring up:


    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
    <sitemap>
    <loc>
    http://www.delayofgame.ca/sitemap.fb47ad097dd2fe79036a274b3f3fb1605578bf5d.xml
    </loc>
    <lastmod>2011-09-09</lastmod>
    </sitemap>
    </sitemapindex>


    perfect. thanks.
  • x00x00
    Posts: 1,546
    Yep that is correct.

    Originally the sitemap spec was only one, now it is possible to have more than one,hence the index.

    grep is your friend.

  • x00x00
    Posts: 1,546
    btw you can also set the sitemaps location in a robots.txt.l

    grep is your friend.

  • Posts: 1
    I have set up sitemap successfully and I could access. I submitted it to google webmasters tool. And google is throwing error

    -------------------------------------
    "General HTTP error: 404 not found
    We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit."
    -------------------------------------

    What could be reason? I could access sitemap from 2 diffrent pc.
  • Posts: 177
    Same here. From what I can see my sitemap looks like I mentioned above, but when google checks it, webmaster tools tells me:

    " Error: The last attempt at downloading the Sitemap failed. The details below are representative of the last successful download."

    "General HTTP error: 404 not found
    We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit."

    "Unsupported file format
    Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit."
  • x00x00
    Posts: 1,546
    Curious. There are various way to submit site maps

    google says it supports index files.

    I didn't write this plugin btw, but it wouldn't be that hard to modify it to submit the sitemap itself preferably through curl, wordpress plugin does that. You could also have a dynamic robots.txt also using routes.

    grep is your friend.

  • x00x00
    Posts: 1,546
    At the moment I can't test becuase I have disallowed indexing.

    grep is your friend.

  • x00x00
    Posts: 1,546
    Since it is not like previous sitemaps are kept then you could simply put the contents of the sitemap in the index file. It would avoid the chance of missing one.

    grep is your friend.

  • Here's an interesting question I was recently asked and I don't really know the answer to: let's say you have a WordPress blog running at www.domain.com and a Vanilla forum running at domain.com/forum

    There are a plethora of WordPress plugins that make sitemaps for WordPress... but they don't touch other apps in the domain, like Vanilla.

    So would it then be best to create a sitemap using a plugin like this one for Vanilla and submit it to Google Webmaster Tools, thus providing for 2 sitemaps for the same domain: one for WordPress and another for Vanilla?

    What do you guys think?
  • x00x00
    Posts: 1,546
    Yes so long as urls do not overlap in them.

    grep is your friend.

  • It all seems to work just fine on the latest beta but when I check server headers for the sitemap.index.xml page, I get a 404. Google webmaster tools also gets the 404 obviously. Any hints?
  • Posts: 177
    im still having the 404 and unsupported file format errors on google webmaster tools. any ideas what to do? its been a year since this plugin has been updated.
  • x00x00
    Posts: 1,546
    ok it is very simple really in plugins/Sitemaps/class.sitemaps.plugin.php in RenderMap method add header('HTTP/1.0 200 OK'); before header('Content-Type: text/xml');

    grep is your friend.

  • x00x00
    Posts: 1,546
    It is basically becuase routes are normally used to direct to dynamic content rather than generated content. Technically this place does not exist.

    grep is your friend.

  • Posts: 177
    wow that totally worked. Thanks @x00!
  • Thank you x00. Much appreciated.
  • Thanks a lot x00. it all works because of you. I greatly appreciate it.
  • It does not work in version 2.0.18.1 or at least i cannot get it to work.

  • x00x00
    Posts: 1,546

    working fine for me.

    grep is your friend.

  • x00x00
    Posts: 1,546

    point to /cache/Sitemaps/sitemaps.index.xml

    it should also display at /sitemaps.index.xml either way you can submit it.

    grep is your friend.

  • Posts: 34

    Doesn't this sitemap rebuild automatically when we create a new thread? I have to manually build the sitemap everyday..

  • Posts: 34

    Also this sitemap has no style sheet. Like in wordpress, we have sitemap enteries in the form of hyperlinks. Can't we do the same with vanilla?

  • Posts: 34

    I just noticed that the plugin is creating a duplicated post. Check here

    http://www.environmentabout.com/forum/sitemap.e7a18e007f0e4c11fbea9410f2e408dbb537b118.xml

    I have six posts right now and this plugin us creating post number 1 twice and there is no post for the entry 6.

Sign In or Register to comment.