- Home
- Categorie
- La Community Connect.gt
- News Ufficiali da Connect.gt
- evitare duplicati
-
evitare duplicati
Ciao,
ho ricevuto questa email, da una directory cui ho iscritto un sito, sono email periodiche, comunque dice così:
An easy step that can help avoid potential ranking loss from duplicate content reprimands is to make sure there aren?t four or five different URLs navigating to the same page. Google views these two domains below as separate entities and if the content is exact, they can take punitive measures against the offending site.
mysite.com
http://www.mysite.comTo address potential duplicate content penalties, manipulate your.htaccess file and redirect secondary domains to the preferred listing. This means every time a web user enters the mysite.com address without the preferred prefix, they are redirected to the correct domain.
Add the following code to your .htaccess file (change the "mysite" to your domain):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=permanent,L]
ed il codice sopra protegge relamente da eventuali "doppioni"?
Non ho capito cosa fanno le righe di codice sopra...
Cosa ne pensate?
-
se non sbaglio si tratta solo di righe di codice che vanno ad indirizzare l'utente alla pagina principale del sito anche quando non viene digitato www
-
quel codice controlla se è stato omesso www. e rendirizza qualsiasi pagina al dominio col www davanti