- Home
- Categorie
- La Community Connect.gt
- News Ufficiali da Connect.gt
- url del sito
-
url del sito
Ciao ragazzi,
tramite uno script gratuito online mi è stato detto questo:
Default Page Check: FAILED
You have not standardized your default pages meaning the following versions of your url return a 200/OK Header, which may cause duplicate content issues. The following extensions work:
http://www.miosito.it/index.php
http://www.miosito.it/da ciò deduco che è raggiungibile da entrambi i link è possibile creare un moduletto che imponga il raggiungimento solo da:
http://www.miosito.it/index.php
se si, ovviamente come?
thx in anticipo
-
ciao,
dovrebbe bastare questo, all'inizio di index.php:[php]if ($_SERVER['REQUEST_URI'] != '/') {
header('HTTP/1.1 301 Moved Permanently');
header("Location: http://www.domain.tld/");
exit;
}[/php]ciao!
Francesco
-
[php]
if ($_SERVER['REQUEST_URI'] == '/') {
header('HTTP/1.1 301 Moved Permanently');
header("Location: http://www.domain.tld/index.php");
exit;
}
[/php]
nel mio caso
-
ehm si
funziona?
-
logico