Forum Moderators: Robert Charlton & goodroi
Installed verification meta tag per Google instructions - got the green checkmark so all is OK there. In fact got green checkmark for two (?) sites - same site, but one with WWW and one without.
I generated an XML sitemap and uploaded it. The 4 url's in the sitemap do NOT have the WWW in them.
So here's where I am now...
[mysite.com...] says "add a sitemap"
[mysite.com...] shows 1 sitemap with 4 errors
All 4 errors say "This url is not allowed for a Sitemap at this location"
So I followed the link to the "Webmaster help center/URL not allowed" page but at this point I'm baffled. All the pages plus a couple of images plus the sitemap are in the same directory.
I hope that's enough info. Can anyone tell me how to proceed so I can get this straightened out?
Thanks in advance...
it turned out that Sitemaps had actually rejected every single page, but for some reason can only tell you about three at a time (which change each time!).
it is very simple to fix. like milanmk says, it sounds like you have your pages listed as:
website.com
on the sitemap, but submitted your site as:
[website.com...]
just resubmit it as
website.com
or include the full URLs on the sitemap to match what you submitted.
they have to be the same.
<?xml version="1.0" encoding="UTF-8"?>
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 [google.com...]
- <url>
<loc>http://www.mydomain.com/</loc>
<priority>1.0</priority>
<changefreq>weekly</changefreq>
</url>
- <url>
<loc>http://www.mydomain.com/secondpage.html</loc>
<priority>1.0</priority>
<changefreq>weekly</changefreq>
</url>
- <url>
<loc>http://www.mydomain.com/thirdpage.html</loc>
<priority>1.0</priority>
<changefreq>weekly</changefreq>
</url>
- <url>
<loc>http://www.mydomain.com/fourthpage.html</loc>
<priority>1.0</priority>
<changefreq>weekly</changefreq>
</url>
- <url>
</urlset>
left out last mod
but it would look like this
<lastmod>2006-05-06T08:55:04+00:00</lastmod>
good luck
So now [mysite.com...] shows as being OK, but
[mysite.com...] shows the 4 errors which were on the WWW site before.
Should I submit two different sitemaps? One with WWW URL's and one without?
for .htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.mydomain\.com.tld
RewriteRule (.*) [mydomain.com.tld...] [R=Permanent,L]
for httpd.conf, change the rule as follows:
RewriteRule ^/(.*) [mydomain.com.tld...] [R=Permanent,L]
[httpd.apache.org...]
some reading before you do any edits
So now [mysite.com...] shows as being OKShould I submit two different sitemaps? One with WWW URL's and one without?
You need only one sitemap per domain if you are not using sub domains. So just keep the sitemap with WWW and remove the other one.
Milan