Any page that the CMS generates can be compressed, to give your Visitors a faster page-load time and help reduce the bandwidth demands on your server.
You do not need to do anything special to start compressing pages; ensuring that the
compress_web_pages Site Setting is on (it's on by default) is sufficient.
mod_rewrite is enabled in your Apache web server, then you can make Zenario cache and compress all images on your website as well.
Applying Caching and Compression to every image on your site requires
The CMS will install and run without
mod_rewrite, but if your server supports
mod_rewrite then you can use additional features in the CMS.
mod_rewrite features, you should first check that
mod_rewrite is enabled in your Apache web server installation. You can then enable Caching and Compression for every image on your site by following one of the following two methods:
We have provided the code needed in the
htaccess.txt file that comes with the CMS.
Provided Apache is configured to read directives from
.htaccess files in your web directory, you can rename the file called
htaccess.txt in your installation to
If you are running the CMS on shared hosting and the URL to your site contains a tilde (~), you will need slightly different rules. You should edit the htaccess_for_tildes_in_home_dir.txt file, replace "yourname" with your directory name, then save this file as .htaccess.
(If you are using a Windows server you may not be able to rename the file using Windows Explorer. However you can work around this limitation by opening it with a text-editor and saving it with a different name.)
You will need access to the Apache virtual host file for your site, in order to add two or three lines of code.
If you are running Zenario from the same directory as your Apache's DocumentRoot, then add the following code:
RewriteRule ^/(.*)\.(bmp|css|gif|ico|js|jpeg|jpg|png|woff)$ /tribiq/compressor.php?p=$1&e=$2 [L]
If you are running Zenario from a subdirectory, then add the following code:
RewriteRule ^/SUBDIRECTORY/(.*)\.(bmp|css|gif|ico|js|jpeg|jpg|png|woff)$ /SUBDIRECTORY/tribiq/compressor.php?p=$1&e=$2 [L]
where you should replace SUBDIRECTORY with the name of the subdirectory in which the CMS is installed.