WordPress.org

Forums

[resolved] [Google-sitemap-generator] Not a valid URL (4 posts)

  1. hitcl
    Member
    Posted 4 years ago #

    I've got no problems using the XML-Sitemap generator to create the sitemap.xml file but when I check Google's webmaster tools an error is returned every time:
    This is not a valid URL. Please correct it and resubmit.
    The error flags line 95 which is the <loc>#</loc> entry in this chunk of code:

    <url>
    	<loc>#</loc>
    	<lastmod>2010-12-14T19:39:41+00:00</lastmod>
    	<changefreq>weekly</changefreq>
    	<priority>0.6</priority>
    </url>

    No matter what I do I can't get rid of that errant #. There are no published or unpublsihed posts/pages with that title/path or an empty title/path and nothing I can find with that date stamp.

    Does anyone have any ideas?

  2. tarbal9
    Member
    Posted 4 years ago #

    I was having that too. I fixed mine. I'm using the Suffusion theme.
    It adds more options for pages. The one i have set is "Do not link to this page in the navigation bars If this box is checked, clicking on this page in the navigation bar will not take you anywhere." So I Exclude the page id in XML Sitemap Generator. Before doing this I notice this page was missing in my sitemap.

  3. hitcl
    Member
    Posted 4 years ago #

    That was it! Thank you.

    I'm running Suffusion too and had the same Do not link to this page in the navigation bars option set on one of my main nav headings, and on checking noticed that the same page was missing from the sitemap.

    Entering the ID of that page and regenerating the sitemap cleared the "#".

    Checking the problem page it's noticeable that the permalink is set by Suffusion as "#" when the "Do not link to this page..." option is set. It's all so very obvious now...

    Now Google & Bing can finally index the site correctly :)

    Thanks for your help.

  4. charles121
    Member
    Posted 4 years ago #

    another problem on site map generation. i do not know where to trun to but please try and helpme.

    i use simple google sitemap xml.

    it finds url like these:

    <url>
    <loc>http://www.bigdaddy.za.net/2010/12/14/113/</loc>
    <lastmod>2011-01-01</lastmod>
    <changefreq>always</changefreq>
    <priority>0.5</priority>

    those urls are not valid and google pick it up as incorrect
    <url>
    <loc>http://www.bigdaddy.za.net/plugins-used/</loc>
    <lastmod>2011-01-01</lastmod>
    <changefreq>always</changefreq>
    <priority>0.5</priority>

    i do not know how to find the the pages? to delete such and since the sitemap is regenerated all the time it picks up the wrong url remain in the system

    please help;
    charles

    [sig moderated as per the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic