Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Sitemap problem

0 votes
643 views
asked Jun 1, 2014 in Plugins by Fraseniuc Lucian

Hello

I have a problem with my sitemap. When i submit it to Google Webmaster Tools i receive this error:

 
image
Errors
Invalid URL
This is not a valid URL. Please correct it and resubmit.

It seems to be a problem with site_url . In my sitemap file it looks like this:

<url>

<loc>/1/this-is-my-first-question</loc>

<priority>0.999610340365</priority>

</url>

and it should look like this:

 

<url>

<loc>http://www.techwarn.com/help/1/this-is-my-first-question</loc>

<priority>0.999610340365</priority>

</url>

 

My sitemap is here: techwarn.com/help/sitemap.xml . Please take a look.

Please help me. Thank you

1 Answer

+2 votes
answered Jun 1, 2014 by maxjtechno

Check in the Admin--->General section the value of the "Preferred site URL" field.

it should be equal to : http://www.techwarn.com

 
commented Jun 2, 2014 by Fraseniuc Lucian
Thank you. But i generated a sitemap online. Is this a problem? Or should i use sitemap generated by sitemap plugin.
commented Jun 2, 2014 by maxjtechno
Ok. I don't know with which tool you've generated it, but the sitemap plugin generates the sitemap dinamically for you at every invocation. So it's always up to date (and not static)
...