2012-06-29 2 views
1

I는 다음과 같습니다 맵이 있습니다Google 웹 마스터 도구가 사이트 맵의 오류를 감지 했습니까?

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"> 

<url> 

<loc>http://www.MyApp.se</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>daily</changefreq> 
<priority>1.0</priority> 
<url> 

<loc>http://www.MyApp.se/Ad/Edit</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Site/Faq</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Site/Support</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Site/AboutMyApp</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Site/News</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Site/Cookies</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 
</url> 
<url> 

<loc>http://www.MyApp.se/Ad/Detail?id=283</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Ad/Detail?id=284</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Ad/Detail?id=285</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Ad/Detail?id=286</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 
<url> 

<loc>http://www.MyApp.se/Ad/Detail?id=294</loc> 
<lastmod>2012-06-28</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 
</urlset> 

을 그리고 이것은 내 Robo.txt입니다 :

User-agent: * 
Disallow: 
Sitemap: <http://www.MyApp.se/Site/Sitemap/> 

문제 Google 웹 마스터 도구에서 나는 다음과 같은 오류를 얻을 수 있습니다 :

1 
Warning 
Invalid XML-tagg 
This tag could not be identifyed. 
**Problems :** 6 
Tag: url 
**Row :** 7 
Tag: url 
13 
Tag: url 
**Row :** 19 

2 
Warning 
Webadress blocked by robots.txt. 
Sitemap contains webadresses that is blocked by robots.txt. 
**Problems :** 12 
Value : http://www.MySite.se 
Value: http://www.MySite.se/Ad/Detail?id=283 
Value: http://www.MySite.se/Ad/Detail?id=284 

왜? 나는 인터넷의 안내에 따라 사이트 맵을 구성 했습니까?

+0

Google은 "XML-tagg"및 "identifyed"를 정말로 작성 했습니까? –

답변

2

정상적으로는 <url> 태그가 모두 있습니다. 각 웹 사이트 페이지의 <loc> 태그 시작부터 </priority> 태그까지의 모든 내용은 <url> 태그 집합으로 묶어야합니다.

<?xml version="1.0" encoding="UTF-8"?> 
<urlset 
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> 

<url> 
<loc>http://www.MyApp.se</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>daily</changefreq> 
<priority>1.0</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Edit</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Site/Faq</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Site/Support</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Site/AboutMyApp</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Site/News</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Site/Cookies</loc> 
<lastmod>2012-06-29</lastmod> 
<changefreq>monthly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Detail?id=283</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Detail?id=284</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Detail?id=285</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Detail?id=286</loc> 
<lastmod>2012-06-26</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 

<url> 
<loc>http://www.MyApp.se/Ad/Detail?id=294</loc> 
<lastmod>2012-06-28</lastmod> 
<changefreq>weekly</changefreq> 
<priority>0.5</priority> 
</url> 

</urlset> 

그냥, 당신의 robots.txt 파일을 정돈은 아래와 같이 보이게하기 위해 아래 수정 된 코드를 참조하십시오. 당신의 sitemap.xml 파일의 위치에 Sitemap 선언 링크 확인 :

User-agent: * 
Sitemap: http://point-this-to-your-sitemap.xml 

Disallow 선언 할 필요도 없다.

이것은 내가 개발 한 웹 사이트의 기본 구조이기 때문에 잘되어야합니다!

0

파일의 시작 부분을 보면 XML 태그에 문제가있는 것처럼 보입니다. 첫 번째 블록 이후에 잊어 버린 것처럼 보입니다. 당신은이 :

 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"> 

    <url> 

    <loc>http://www.MyApp.se</loc> 
    <lastmod>2012-06-29</lastmod> 
    <changefreq>daily</changefreq> 
    <priority>1.0</priority> 
    <url> 

    <loc>http://www.MyApp.se/Ad/Edit</loc> 

[...] 

그리고 당신이 있어야합니다

 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"> 

    <url>   
    <loc>http://www.MyApp.se</loc> 
    <lastmod>2012-06-29</lastmod> 
    <changefreq>daily</changefreq> 
    <priority>1.0</priority> 
    </url> 

    <url> 
    <loc>http://www.MyApp.se/Ad/Edit</loc> 

[...] 

나는 당신이 당신의 코드에서 다른 곳에서 같은 문제가 생각합니다. XML 편집기를 사용하여 확인하려고 할 수 있습니다.

관련 문제