Ok eu teño algunha idea.
Por favor, escriba aquí a súa versión vBET no seu foro. Se non está de máis recente - podes actualizar vBET cambiado á última versión - 3.4.0.
En vBET 3.4.0 fixemos unha redireccións 301 das 302 antigas (non permanente).
Se usar esta versión antiga do VBET e se alguén vai utilizar un url malo, el será redirixido para o bo por 302 redirección e Google indexa-lo! (Para que iso non é bo).
Entón podes actualizar a 3.4.0 vBET versión ou utilizar esta solución para facer redirección 301 neste lugar:
1. abrir e editar arquivos (e facer unha copia!):
raíz foro / includes / vbenterprisetranslator_functions_hooks.php
2. neste ficheiro atópase:
PHP Code:
function vbet_global_start(&$template_hook) {
3. nesta función atopar:
PHP Code:
exec_header_redirect($threadurl);
4. e substituír por:
PHP Code:
vbet_vb_exec_header_redirect($threadurl);
5. ir ao final deste ficheiro e atopar:
6. colocado antes ?> este código:
PHP 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. gardar e proba-lo!