PDA

View Full Version : Solved Google showing 3 version of same url in webmaster tools



ctrenks
23-03-11, 19:20
Just to be sure, as Ive hinted at this issue in different posts but here is an example of an issue i see in webmaster tools. With 60,000 pages having identical title tags (many from post1 / post2 type issue but i see a lot of this as well

http://www.allfreechips.com/Image/3-23-2011 2-15-06 PM.jpg

kamilkurczak
28-03-11, 21:16
hello,
please paste your links between code tag because I would like to try it.

I checked this one:

phpBB2/ga/promotions/6949-a.html
and I have - Page not found.

ctrenks
28-03-11, 21:25
let me try again, its not easy to copy and paste like that from webmaster tools.

ctrenks
28-03-11, 21:30
here is a message as well

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://www.allfreechips.com/phpBB2/da/archive-casino-stuff/2861-new-$25-no-deposit-100-free-progressive-spins-expired.html[code]

here is a duplicate from webmaster

[code]http://www.allfreechips.com/phpBB2/mt/dice/2614-%C5%BBbaljat-sorry-slots-alley-acct-isem.html

http://www.allfreechips.com/phpBB2/mt/dice/2614-maaf-salah-slot-acct-alley-nama.html

ctrenks
30-03-11, 00:42
any thoughts on the different variations?

kamilkurczak
30-03-11, 08:14
I am looking which one redirection is made here by vBSEO.

kamilkurczak
30-03-11, 21:31
Ok I have some idea.
Please write here your vBET version on your forum. If you don't have the newest one - you can upgrade vBET to the latest version - 3.4.0.
In vBET 3.4.0 we made a 301 redirections from old 302 (not permanent).
If you use this old version of VBET and If somebody will use a bad url he will be redirected to the good one by 302 redirection and google will index it! (so this is not good).

So you can upgrade vBET to 3.4.0 version or use this solution to make 301 redirect in this place:

1. open and edit file (and make a COPY!):
forum root/includes/vbenterprisetranslator_functions_hooks.php
2. in this file find:

function vbet_global_start(&$template_hook) {
3. in this function find:

exec_header_redirect($threadurl);
4. and replace with:

vbet_vb_exec_header_redirect($threadurl);
5. go to the end of this file and find:

?>
6. put before ?> this code:

function vbet_vb_exec_header_redirect($url)
{
global $vbulletin;

$url = create_full_url($url);
$url = str_replace('&', '&', $url); // prevent possible oddity

if (strpos($url, "\r\n") !== false)
{
trigger_error("Header may not contain more than a single header, new line detected.", E_USER_ERROR);
}

header("Location: $url", 0, 301);

if ($vbulletin->options['addheaders'] AND (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi'))
{
header('Status: 301 Moved Permanently');
}

define('NOPMPOPUP', 1);
if (defined('NOSHUTDOWNFUNC'))
{
exec_shut_down();
}
exit;
}
7. save and test it!

ctrenks
31-03-11, 00:56
I will update the code but I already updated the Vbulletin redirect to a perm 301 a while back

kamilkurczak
31-03-11, 17:30
ok I am waiting for your confirmation.

kamilkurczak
09-04-11, 09:23
no answer- solved, if not - please wite here and i will open this thread again

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations supported by vBET 4.10.1