Completed

Arreglo de .Htacces En Web

Published on the December 22, 2015 in IT & Programming

About this project

Open

Mi web estudiomr.net da errores:
"Esta página web tiene un bucle de redireccionamiento

ERR_TOO_MANY_REDIRECTS"


Este es el codigo actual:
***************************************************************************************************
ErrorDocument 404 https://www.estudiomr.net/404.php
Errordocument 403 https://www.estudiomr.net/403.php

#si es http sin www, que redireccione a https con www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^estudiomr.net [NC]
RewriteRule ^(.*)$ https://www.estudiomr.net/$1 [L,R=301]

#Primera condición, si es https sin wwww, que redireccione a www.
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

#Segunda condición. Si no es https y no tiene www, redirecciono a https con www.
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*) https://www.estudiomr.net/$1 [R,L]

#Tercero, si no es https y ya tiene www, solo redirecciono a https
rewritecond %{https} !=on
rewritecond %{http_host} ^www\.
RewriteRule ^(.*) https://www.estudiomr.net/$1 [R,L]

#comprimiendo en gzip
addoutputfilterbytype deflate text/plain
addoutputfilterbytype deflate text/html
addoutputfilterbytype deflate text/xml
addoutputfilterbytype deflate text/css
addoutputfilterbytype deflate application/javascript
addoutputfilterbytype deflate application/x-javascript
addoutputfilterbytype deflate application/xml
addoutputfilterbytype deflate application/xhtml+xml
addoutputfilterbytype deflate application/rss+xml

***************************************************************************************************
necesito dejar funcionando mi web www.Estudiomr.net con un htacces que cumpla los siguientes requisitos:
*si es http sin www, que redireccione a https con www.
*si es https sin www, que redireccione a www.
*Si no es https y no tiene www, redireccionara a https con www.
*Si no es HTTPS y ya tiene www, solo redireccionara a HTTPS

Category IT & Programming
Subcategory Web development
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Roles needed Developer

Delivery term: December 23, 2015

Skills needed