PDA

View Full Version : Solved Google sitemap errors



haiduongbk
24-04-11, 15:26
I submit sitemap by google webmaster tools I see this error:

URLs not followed
When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.


HTTP Error: 301
URL:
htt p://windowsz.net/threads/13026-Soft-Android-Norton-Smartphone-Security-Bảo-mật-cho-điện-thoại-Android&language=pl
Problem detected on: Apr 24, 2011
- I use Mod Rewrite Friendly URLs, I use: Create URL's theo SEO link Consensus (ie '/ en / address'); not use vBSEO use: vBSEO Search Engine XML Sitemap - Contents of file. Htaccess I:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^windowsz\.net$ [NC]
RewriteRule ^(.*)$ http://windowsz.net/$1 [R=301,L]
DirectoryIndex forum.php index.php index .php3 messagebrd.pl index.html index.htm
RewriteBase /
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ forum.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

Options +FollowSymLinks

### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED

RewriteRule ^includes/(.*) index.php
RewriteRule ^vb/(.*) index.php
RewriteRule ^packages/(.*) index.php

### THIS IS THE ACTUAL REWRITE

RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}
vbseo_sitemap_functions.php file with the content:

$prior = vbseo_sm_priority($vboptions['vbseo_sm_priority_rt'], $relp);

if($vboptions['vbseo_sm_freq_tsmart'])
{
$dpassed = (time() - $threadrow['lastpost'])/86400;
if($dpassed<3)$freq = 'daily';
else if($dpassed<10)$freq = 'weekly';
else if($dpassed<100)$freq = 'monthly';
else $freq = 'yearly';
}else
$freq = $vboptions['vbseo_sm_freq_t'];

vbseo_log_entry("[showthread] forum_id: $forumid, thread_id: $threadrow[threadid], total posts: $totalposts, pages: $totalpages, views: $threadrow[views] $prior");
for($p=1; $p<=$totalpages; $p++)
{
//additional code
$alanguages = array ('af','sq','ar','be','bg','ca','zh-CN','hr','cs','da','nl','en','pl','et','tl','fi','fr','gl','de','el','iw','hi','hu','is','id','ga','it','ja','ko','lv','lt','mk','ms','mt','no','fa','pt','ro','ru','sr','sk','sl','es','sw','sv','zh-TW','th','tr','uk','cy','yi');
if(!$archived) {
$currentthreadurl = vbseo_url_thread($threadrow, $p, $archived) . '&language=';
$vbseo_stat['t'] += sizeof($alanguages);
$lastpost =& $threadrow['lastpost'];
foreach($alanguages as $language) {
vbseo_add_url($currentthreadurl.$language, $prior, $lastpost, $freq);
}
}
//end additional code
$vbseo_stat[$archived?'at':'t'] += vbseo_add_2urls(
vbseo_url_thread($threadrow, $p, $archived),
vbseo_url_thread($threadrow, $p, $archived, true),
$prior,
$threadrow['lastpost'],
$freq
&nbsp;);

}

if($showpost)
{

$getposts = $db->query("
SELECT p.dateline,p.postid,p.threadid
FROM " . TABLE_PREFIX . "post AS p
WHERE p.threadid = $threadrow[threadid]
AND visible = 1
ORDER BY p.dateline
");
You please help me as the correct configuration, and why errors sitemap that helps me troubleshoot with, thanks

haiduongbk
24-04-11, 15:38
I am using vBulletin 4.1.3, I made the wrong topic, please switch to vbulletin forum 4 me

kamilkurczak
25-04-11, 14:34
hello,

firstly, put rules of sitemap generator BEFORE vBET rules:

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

haiduongbk
26-04-11, 02:03
Thanks Kamilkurczak. I did so, but the issue remains unresolved. Help me.

RewriteEngine on
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{HTTP_HOST} !^windowsz\.net$ [NC]
RewriteRule ^(.*)$ http://windowsz.net/$1 [R=301,L]
DirectoryIndex forum.php index.php index .php3 messagebrd.pl index.html index.htm
RewriteBase /
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ forum.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]

Options +FollowSymLinks

### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED

RewriteRule ^includes/(.*) index.php
RewriteRule ^vb/(.*) index.php
RewriteRule ^packages/(.*) index.php

### THIS IS THE ACTUAL REWRITE

RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
RewriteRule ^widget/config/([0-9]+) widget.php?r=config/$1&%{QUERY_STRING}

haiduongbk
27-04-11, 10:23
VBSEO 3.6.0 I have used and what does not get an error message from google. - I vBSEO implementation and integration. My htaccess contents:

RewriteEngine on

RewriteCond %{HTTP_HOST} !^windowsz\.net$ [NC]
RewriteRule ^(.*)$ http://windowsz.net/$1 [R=301,L]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

#RULES for SEO translation links with vBSEO (have to be included before all rules to vbseo.php)
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

RewriteCond %{REQUEST_URI} !(adminwzcp/|modwzcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(adminwzcp|modwzcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_URI} !(adminwzcp/|modwzcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(adminwzcp|modwzcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
It has worked for me. However, in order to integrate the sitemap I just need to follow the instructions - I do not add anything else? - My problem now is not translated into links post. Example: my website link

Chống trộm khi dùng Wi-Fi (http://windowsz.net/f30/ch%E1%BB%91ng-tr%E1%BB%99m-khi-d%C3%B9ng-wi-fi-23696.html)
After service:

Anti-theft when using Wi-Fi (http://windowsz.net/en/f30/ch%E1%BB%91ng-tr%E1%BB%99m-khi-d%C3%B9ng-wi-fi-23696.html)
How can it translate in the link address as your website?

haiduongbk
27-04-11, 10:27
This means that it can translate to post content, and the post title, but it does not translate to link all post like this for your website

haiduongbk
27-04-11, 10:41
- The problem is that the sitemap is created, I read:

<url>
<loc>http://windowsz.net/yi/f11/%5Bthao-luan%5D-%5Byou%5D-nghi-gi-ve-windows7-final-truoc-gio-g-22-10-2009-a-556-6.html</loc>
<priority>0.6802</priority>
<lastmod>2011-04-26T11:23:06+00:00</lastmod>
<changefreq>yearly</changefreq>
</url>
<url>
<loc>http://windowsz.net/f11/%5Bthao-luan%5D-%5Byou%5D-nghi-gi-ve-windows7-final-truoc-gio-g-22-10-2009-a-556-6.html</loc>
<priority>0.6802</priority>
<lastmod>2011-04-26T11:23:06+00:00</lastmod>
<changefreq>yearly</changefreq>
</url>
<url>
I can see the address But that link is not found error page. Help me. Too many errors discharged to my website

kamilkurczak
27-04-11, 11:51
ok I will check it for you

kamilkurczak
03-05-11, 17:55
about google sitemap error:

Links in sitemap should be not translated.
This is good - This is how it should work. Why? Performance.
At this moment generation of 52 times more links for threads can consume lot of time for large forums. Translation of all of those in same time could made it really, really time consuming and generate lot of queries to database.

And this is good for google - as you see, you have a 301 redirect to the page with translated url (HTTP Error: 301).

Google would prefer that the links were translated, but it does not bother them at all.

More here: vBET Integration with other plugins - vBulletin Enterprise Translator (vBET) (http://www.vbenterprisetranslator.com/forum/vbet-integration-other-plugins/)

This message from google is for your information. They think that you probably have a bad links in the sitemap, They think that is not good for you and you don't know nothing about that,
but you know - this links are redirected (with 301) to the good form and this is good for google and very good for your site (performance).

vBET don't support translation of url in sitemap.

Also, you can not integrate vBET with sitemap - You will have in sitemaps only links of original threads. Google crawl links translated itself (but it will take longer) and you will have translated urls

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vBET Translator PRODUCER_PRODUCT_VERSION