Salve a tutti!
Sto testando un sito con uno di questi servizi gratuiti che ci stanno su internet e continuo a riceve questo messaggio:
"There is duplicate content on http://www.XXX.com and http://YYY.com. This is bad, as technically they are classed as two different websites. Search engines may lower a website's rank if they find the same content on two different URLs."
nonostante abbia messo nel file .htaccess questo:
Redirect permanent http://www.XXX.com http://YYY.com
Redirect permanent http://www.XXX.com/index.php http://YYY.com
Redirect permanent http://XXX.com/index.php http://YYY.com
e nell'index (a scanso di equivoci) quest'altro:
Codice PHP:
if($_SERVER['PHP_SELF']=="www.XXX.com"){ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://YYY.com"); }
e
codice HTML:
<link rel="canonical" href="http://YYY.com"/>
più di così che altro posso fare??? Eppure mi continua a dare quella segnalazione.
Secondo voi dove sto sbagliando?
Grazie in anticipo a tutti, ciao!