How to enable simple compression with mod_deflate/gzip on Apache within .htaccess -
i have following .htaccess file website hosted on linux, apache , php 5.4.41 stack:
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress
the following php 5.4.41 functionality available me on server shown here in php info file:
http://88.208.252.229/phpinfo.php
i'm trying optimise website output server compressed before being sent client on network.
now believe achieved mod_deflate
- problem don't know how implement in .htaccess file.
in it's simple form not enable compression html files making overall .htaccess file this? i'm assuming "/your-server-root/manual"
htdocs.
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> # end wordpress <directory "/your-server-root/manual"> addoutputfilterbytype deflate text/html </directory>
the final thing mention server pre-processing wide range of files , delivering them client such .jpeg, .html etc. want mod_deflate
compress as reasonably possible.
if can take time answer , increase understanding of issue appreciated. in advance.
Comments
Post a Comment