Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/04/2014, 06:43
Avatar de yonox
yonox
 
Fecha de Ingreso: abril-2014
Ubicación: Madrid
Mensajes: 15
Antigüedad: 10 años
Puntos: 0
Respuesta: Problema con HTACCESS

Bueno, ahora entiendo...

301 Redirect non WWW. to WWW. Method 1:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

301 Redirect non WWW. to WWW. Method 2:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]