davidvega Posted February 19, 2016 Share Posted February 19, 2016 (edited) Buenas tardes, cada vez que edito algo del SEO+URls como es lógico se regenera el fichero .htacess, donde esta el problema es el siguiente. Cada vez que se me restablece el fichero se me borra el texto del Gzip que es el siguiente. <IfModule mod_deflate.c># Compress HTML, CSS, JavaScript, Text, XML and fontsAddOutputFilterByType DEFLATE application/javascriptAddOutputFilterByType DEFLATE application/rss+xmlAddOutputFilterByType DEFLATE application/vnd.ms-fontobjectAddOutputFilterByType DEFLATE application/x-fontAddOutputFilterByType DEFLATE application/x-font-opentypeAddOutputFilterByType DEFLATE application/x-font-otfAddOutputFilterByType DEFLATE application/x-font-truetypeAddOutputFilterByType DEFLATE application/x-font-ttfAddOutputFilterByType DEFLATE application/x-javascriptAddOutputFilterByType DEFLATE application/xhtml+xmlAddOutputFilterByType DEFLATE application/xmlAddOutputFilterByType DEFLATE font/opentypeAddOutputFilterByType DEFLATE font/otfAddOutputFilterByType DEFLATE font/ttfAddOutputFilterByType DEFLATE image/svg+xmlAddOutputFilterByType DEFLATE image/x-iconAddOutputFilterByType DEFLATE text/cssAddOutputFilterByType DEFLATE text/htmlAddOutputFilterByType DEFLATE text/javascriptAddOutputFilterByType DEFLATE text/plainAddOutputFilterByType DEFLATE text/xml# Remove browser bugs (only needed for really old browsers)BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4\.0[678] no-gzipBrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlHeader append Vary User-Agent</IfModule> Habría alguna forma de que cuando se regenere el archivo se regenere con el Gzip. Un saludo y gracias. Edited February 22, 2016 by davidvega (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted February 22, 2016 Share Posted February 22, 2016 (edited) Pones esas líneas fuera de la zona que te indica PS? Edited February 22, 2016 by joseantgv (see edit history) Link to comment Share on other sites More sharing options...
davidvega Posted February 22, 2016 Author Share Posted February 22, 2016 Donde encuentro dicho espacio dentro del documento ? Link to comment Share on other sites More sharing options...
joseantgv Posted February 22, 2016 Share Posted February 22, 2016 Donde encuentro dicho espacio dentro del documento ? En el fichero .htaccess tienes estas líneas: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Tienes que poner tu código fuera de esas líneas. Link to comment Share on other sites More sharing options...
davidvega Posted February 22, 2016 Author Share Posted February 22, 2016 Bien parece que tengo el problema resuelto, muchas gracias !! Link to comment Share on other sites More sharing options...
Recommended Posts