Mempercepat Loading Website Dengan HTACCESS | TubanHost | Web Hosting Indonesia | Domain Murah
Telpon/WhatsApp
0822 3040 7876

Mempercepat Loading Website Dengan HTACCESS

Mempercepat Loading Website Dengan HTACCESS

Loading Website Cepat

Loading website anda lambat?.. mungkin salah satu penyebabnya adalah tidak menggunakan cache. akitfkan gzip compression dangan langkah-langkah di bawah ini :

  1. Buka folder root website anda ( biasanya di /home/userwebanda/public_html
  2. Cari file atau buat .htaccess ( kalau tidak ada lihat pengaturan dan show hidden file )
  3. Tambahkan script di bawah ini di .htaccess

    AddOutputFilterByType DEFLATE “application/atom+xml” \
    “application/javascript” \
    “application/json” \
    “application/ld+json” \
    “application/manifest+json” \
    “application/rdf+xml” \
    “application/rss+xml” \
    “application/schema+json” \
    “application/vnd.geo+json” \
    “application/vnd.ms-fontobject” \
    “application/x-font-ttf” \
    “application/x-javascript” \
    “application/x-web-app-manifest+json” \
    “application/xhtml+xml” \
    “application/xml” \
    “font/eot” \
    “font/opentype” \
    “image/bmp” \
    “image/svg+xml” \
    “image/vnd.microsoft.icon” \
    “image/x-icon” \
    “text/cache-manifest” \
    “text/css” \
    “text/html” \
    “text/javascript” \
    “text/plain” \
    “text/vcard” \
    “text/vnd.rim.location.xloc” \
    “text/vtt” \
    “text/x-component” \
    “text/x-cross-domain-policy” \
    “text/xml”ExpiresActive OnExpiresByType image/jpg “access 1 year”

    ExpiresByType image/jpeg “access 1 year”
    ExpiresByType image/gif “access 1 year”
    ExpiresByType image/png “access 1 year”
    ExpiresByType text/css “access 1 month”
    ExpiresByType application/pdf “access 1 month”
    ExpiresByType application/javascript “access 1 month”
    ExpiresByType application/x-javascript “access 1 month”
    ExpiresByType application/x-shockwave-flash “access 1 month”
    ExpiresByType image/x-icon “access 1 year”
    ExpiresDefault “access 2 days”

  4. Save file .htaccess

Cara tersebut akan mempercepat respon server dan juga mempercepat website anda

TubanHost - Web Hosting & Domain Murah
Related Post

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *