Warning: file_get_contents(http://pop.robingood.it/transfer_data.php?a=) [function.file-get-contents]: failed to open stream: Host is down in [path]/global.php(238) : eval()'d code on line 23
POP Forum - Visualizza un messaggio singolo - Aiuto configurazione .htaccess
Visualizza un messaggio singolo
  #2 (permalink)  
Vecchio 08-28-2009, 07:34
Rispondi quotando
Matteo Dini non è in linea
Matteo Dini
Junior Member
Registrato dal: Aug 2009
ubicazione: Livorno
Messaggi: 21
Devi fare un redirect di tipo 301 (permanente).

La variabile da aggiungere è:

codice:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.nomesito\.it [NC]
RewriteRule ^(.*)$ http://www.nomesito.it/$1 [L,R=301]
</IfModule>
Ovviamente cambia "nomesito" con il nome reale del sito.

L'htaccess finale dovrà risultare:

codice:
# INIZIO Redirect con WWW
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.nomesito\.it [NC]
RewriteRule ^(.*)$ http://www.nomesito.it/$1 [L,R=301]
</IfModule>
# FINE Redirect con WWW

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
__________________
Matteo Dini - Tecnopassion - News dal web 2.0