CONTENIDO DUPLICADO
Hola, nuevamente molestando por problemas que no se resolver, he leído por ahi lo siguiente
"Si tu tienes habilitado Cloudflare en el panel, tu sitio debe usar el subdominio “www”. Asegúrate que tu archivo .htaccess no tiene ningún redireccionamiento a la versión non-www de tu URL. Si lo hace y estas usando Cloudflare, podrás experimentar el error “Muchas redirecciones” o 'Too many redirects' en tu buscador"
Estoy teniendo problemas con la versión http y https y además con las www y sin www, quisoera saber si hay algo que pueda hacer para arreglar estos problemas ya que google me está penalizando por contenido duplicado y podré rankear debidamente, gracias!
adjunto .htaccess de mi sitio para que alguien pueda analizarlo y ayudarme, muchas gracias!
RewriteEngine on
# Redirect to domain with www.
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Same for HTTPS:
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect to another domain: distribuidoracorflet.com.
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^(www\.)?distribuidoracorflet\.com$ [NC]
RewriteRule .* http://distribuidoracorflet.com%{REQUEST_URI} [R=301,L]
# Same for HTTPS:
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^(www\.)?distribuidoracorflet\.com$ [NC]
RewriteRule .* https://distribuidoracorflet.com%{REQUEST_URI} [R=301,L]
# Custom error pages.
ErrorDocument 400 /404.html
# Compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascri
-
Entiendo que por los dos primeros redirect van a la versión www y los segundos van a la version sin www, quizás venga por ahi el problema.
0 -
Hola Sergio Beccacece ante la duda te sugiero que borres esas directivas y uses estas guías:
También podés forzar de HTTP a HTTPS desde el panel de control de Cloudflare con la opción "Always Use HTTPS".
Saludos!
0
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios