?>/script>'; } ?> CARPETA HCACCESS EROOR DEFLATE_MODE CON COMRIMIR ZLIP Widgets Magazine

Autor Tema: CARPETA HCACCESS EROOR DEFLATE_MODE CON COMRIMIR ZLIP  (Leído 4289 veces)

0 Usuarios y 1 Visitante están viendo este tema.

another_beginner

  • Visitante
CARPETA HCACCESS EROOR DEFLATE_MODE CON COMRIMIR ZLIP
« en: 16-09-2014, 13:47 (Martes) »
 HOLA A TODOS,
LLEVO SEMANAS INTENTAR COMPRIMIR IMAGENES Y TEXTOS ETC,
CON DEFLATE_MODE EN 1&1 Y TRAS VARIAS LLAMADAS ME DICEN
 QUE ES UN HOSTING COMPARTIDO Y NO PUEDO UTILIZAR EL GZIP
 PERO SI ZLIP. TODOS MIS INTENTENTOS DE CONFIGURAR LA CARPETA
 HTACCESS ESTAN EN VAN YA QUE SOLO PUEDE HACER UN CACHE PARA 1 MES.
SI INTENTO ACTIVAR EL DEFLATE_MOD CON ZLIP, AL VERIFICAR LA PAGINA
CON GOOGLESPEED O OTRAS HERRAMIENTA, ME DA ERROR DE ACTIVACION COMPRIMIR,
O ERROR 500.
AQUI OS DEJO LAS LINEAS DEL HTACCESS Y POR FAVOR SI ALQUIEN
 SAVE COMO ACTIVAR ESTE MALDITO MODULO ME QUITO EL SOMBRERO CON MILES DE
 AGRADECIMIENTOS.
EL PHP QUE ESTA ANTE EL DOCTYPE:

 <?php ini_set('zlib.output_compression', 'On'); ini_set('zlib.output_compression_level', '9'); ?><!DOCTYPE html><html itemscope itemtype="http://schema.org/WebPage" lang="es">

................................................

LAS LINEAS DEL HTACCESS QUE DAN ERROR 500

Options +Indexes +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^MYWEB.com
RewriteRule (.*) http://www.MYWEB.com/$1 [R=301,L]
RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]
ErrorDocument 404 /404.html


<IfModule mod_expires.c>
 ExpiresActive On
 ExpiresDefault A300
 # Expires after 1 month
 ExpiresByType image/gif A2592000
 ExpiresByType image/ico A2592000
 ExpiresByType image/png A2592000
 ExpiresByType image/jpg A2592000
 ExpiresByType image/x-i A2592000
 ExpiresByType text/javascript A2592000
 ExpiresByType text/html A2592000
 ExpiresByType application/xhtml A2592000
 ExpiresByType application/ttf A2592000
 ExpiresByType application/woff A2592000
 ExpiresByType application/gz A2592000
 ExpiresByType application/pdf A2592000
 ExpiresByType text/xml A2592000
 ExpiresByType application/x-javascript A2592000
 ExpiresByType text/plain A2592000
 ExpiresByType text/css A2592000
 ExpiresByType text/js A2592000
</ifModule>

<IfModule mod_deflate.c>
   <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
      SetEnvIfNoCase ^(Accept-Encoding|X-cept-Encoding|X{15}|~{15}-|15})$ ^((zlib|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE-Accept-Encoding
      RequestHeader append Accept-Encoding "zlib,deflate" env=HAVE_Accept-Encoding
    </IfModule>
   </ifModule>

   <Ifmodule mod_filter.c>
    AddOutputFilterByType Deflate
    application/x-web-app-manifest-json \
    application/xml \
    applicacion/pdf \
    application/javascript \
    application/json \
    application/rss+xml \
    application/vnd.ms-fontobject \
    application/x-font-ttf \
    application/x-web \
    application/x-font-svg \
    application/x-font-eot \
    application/x-font-woff \
    application/x-font-eot@ \
    application/fontawesome-webfont.eot@ \
    application/fontawesome-webfont.svg \
    application/Metrize-Icons.eot \
    application/Metrize-Icons.svg \
    application/Metrize-Icons.woff \
    font/opentype \
    font/truetype \
    image/svg+xml \
    image/x-icon \
    image/png \
    image/jpg \
    image/gif \
    text/css \
    text/html \
    text/plain \
    text/x-component \
    text/xml \
   </IfModule>
</IfModule>

Ahora el archivo HTACCESS de la raiz de mi index, ya no tiene las lineas que activa el DEFLATE_MODE por el tema de errror 500.
Bueno esto es todo.
Thanks FOXS !!!