Deixar admin Whmcs mais rápido

Deixar admin Whmcs mais rápido

Quem nunca teve aquela dorzinha de cabeça usando o WHMCS? Páginas de erro 500, páginas em branco e uma série de outros problemas que esse maravilhoso sistema

Vamos lá, irei explicar um passo simples no .htaccess

Basta adicionar o código abaixo em seu arquivos .htaccess antes não esqueça de fazer um backup do atual

Código:

AddType “text/javascript” .gz AddEncoding gzip .gz
AddType “text/css” .gz AddEncoding gzip .gz
RewriteEngine on
ReWriteCond %{HTTP:accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
ReWriteCond %{REQUEST_FILENAME} !^.+.gz$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.+) $1.gz [QSA,L]
FileETag None
ExpiresActive on ExpiresDefault “access plus 1 month” ExpiresByType text/cache-manifest “access plus 0 seconds” ExpiresByType text/html “access plus 0 seconds” ExpiresByType text/xml “access plus 0 seconds” ExpiresByType application/xml “access plus 0 seconds” ExpiresByType application/json “access plus 0 seconds” ExpiresByType application/rss+xml “access plus 1 hour” ExpiresByType application/atom+xml “access plus 1 hour” ExpiresByType image/x-icon “access plus 1 week” ExpiresByType image/gif “access plus 1 month” ExpiresByType image/png “access plus 1 month” ExpiresByType image/jpg “access plus 1 month” ExpiresByType image/jpeg “access plus 1 month” ExpiresByType video/ogg “access plus 1 month” ExpiresByType audio/ogg “access plus 1 month” ExpiresByType video/mp4 “access plus 1 month” ExpiresByType video/webm “access plus 1 month” ExpiresByType text/x-component “access plus 1 month” ExpiresByType application/x-font-ttf “access plus 1 month” ExpiresByType font/opentype “access plus 1 month” ExpiresByType application/x-font-woff “access plus 1 month” ExpiresByType image/svg+xml “access plus 1 month” ExpiresByType application/vnd.ms-fontobject “access plus 1 month” ExpiresByType text/css “access plus 1 year” ExpiresByType application/javascript “access plus 1 year” ExpiresByType application/x-javascript “access plus 1 year”
Header set X-UA-Compatible “IE=Edge,chrome=1” Header unset X-UA-Compatible
SetOutputFilter DEFLATE

Liliani Zottele

See all author post

Leave a Reply

WhatsApp Dúvidas??