This article describes specific steps you can take to optimize an OpenCart site.
There are several modifications you can make to OpenCart that help improve your site's speed and responsiveness. The procedures below show you how to do this so your site is optimized for high performance.
OpenCart includes settings to optimize your store's URLs for search engines, but they are disabled by default. To enable these settings, follow these steps:
RewriteBase /
You can add compression and caching directives to the .htaccess file in OpenCart's root directory to help decrease page load times for your site.
The Apache mod_deflate module enables you to compress output. This both saves bandwidth and ensures faster page download times. To enable output compression for OpenCart, follow these steps:
<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript </IfModule>
The Apache mod_expires module enables you to instruct web browsers how long to cache certain types of content. This both saves bandwidth and ensures faster page download times. To enable browser caching directives for OpenCart, follow these steps:
<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresDefault "access plus 1 week" </IfModule>
By default, OpenCart counts the number of products in each subcategory. If your store has a lot of subcategories, however, this feature can negatively affect performance. To disable product counters, follow these steps:
Do one of the following steps:
Do one of the following steps:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.