MyProffs

Increase Joomla Site's speed

 One of the disadvantages of Joomla is the loading time of the site. But to worry we have some advice for you to do to increase the speed.

Help25-site-control_panel-screen

  • System plug-in order, make sure

"System - cache" plugin should be last one in the list

all SEF plugins must be loaded right before cache plugins

 

  • Turn off Components, modules and Plugins you don’t use

This is very important as this could boost up your speed of few seconds

  • Turn on caching in Joomla/ Global Cache

The global cache stores copies of the template view, the article view and individual module views. to enable it you need to go to Site>global configuration you will find an option to enable ‘caching’

  • Turn on System Cache 

To enable the system cache go to Extensions > Plugin Managerthen click on "System Cache" and tick the enable button.

  • Browser Cache

Browser caching can be enabled on the same page as the "System Cache" plugin.

  • Clean the Cache

If you ever need to clean the cache simply go to Tools > Clean Cache.

 

  • Create new .htaccess file or edit the one you have in your JOOMLA ROOT folder and paste this:

### @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ 
# @package Joomla 
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL 
# Joomla! is Free Software 
##

## Can be commented out if causes errors, see notes above. 
Options +FollowSymLinks -Indexes


# mod_rewrite in use

DirectoryIndex index.php 
RewriteEngine On 
RewriteBase /

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule (.*) index.php

########## Begin - Rewrite rules to block out some common exploits 
## If you experience problems on your site block out the operations listed below 
## This attempts to block the most common type of exploit `attempts` to Joomla! 

# Block out any script trying to set a mosConfig value through the URL 
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR] 
# Block out any script trying to base64_encode crap to send via URL 
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR] 
# Block out any script that includes a tag in URL 
RewriteCond %{QUERY_STRING} (|%3E) [NC,OR] 
# Block out any script trying to set a PHP GLOBALS variable via URL 
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR] 
# Block out any script trying to modify a _REQUEST variable via URL 
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2}) 
# Send all blocked request to homepage with 403 Forbidden error! 
RewriteRule ^(.*)$ index.php [F,L] 

########## End - Rewrite rules to block out some common exploits

# RewriteBase /

########## Begin - Joomla! core SEF Section 
#

RewriteCond %{HTTP:Accept-Encoding} gzip 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} !^/index.php 
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC] 
RewriteRule (.*) index.php 
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]


########## End - Joomla! core SEF Section 
Header set Expires "max-age=29030400, public" 
Header unset ETag 
FileETag None

ExpiresActive On 
ExpiresDefault A600 
ExpiresByType image/x-icon A2592000 
ExpiresByType application/x-javascript A604800 
ExpiresByType text/css A604800 
ExpiresByType image/gif A2592000 
ExpiresByType image/png A2592000 
ExpiresByType image/jpeg A2592000 
ExpiresByType text/plain A1200 
ExpiresByType application/x-shockwave-flash A2592000 
ExpiresByType video/x-flv A2592000 
ExpiresByType application/pdf A2592000 
ExpiresByType text/html A600

 

 

If you get error try this

### @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $ 
# @package Joomla 
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. 
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL 
# Joomla! is Free Software 
## 

## Can be commented out if causes errors, see notes above. 
Options +FollowSymLinks -Indexes 

# 
# mod_rewrite in use 

RewriteEngine On 

########## Begin - Rewrite rules to block out some common exploits 
## If you experience problems on your site block out the operations listed below 
## This attempts to block the most common type of exploit `attempts` to Joomla! 
# 
# Block out any script trying to set a mosConfig value through the URL 
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] 
# Block out any script trying to base64_encode crap to send via URL 
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] 
# Block out any script that includes a tag in URL 
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR] 
# Block out any script trying to set a PHP GLOBALS variable via URL 
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] 
# Block out any script trying to modify a _REQUEST variable via URL 
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 
# Send all blocked request to homepage with 403 Forbidden error! 
RewriteRule ^(.*)$ index.php [F,L] 
# 
########## End - Rewrite rules to block out some common exploits 

# RewriteBase / 

########## Begin - Joomla! core SEF Section 
# 

RewriteCond %{HTTP:Accept-Encoding} gzip 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} !^/index.php 
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] 
RewriteRule (.*) index.php 
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] 

# 
########## End - Joomla! core SEF Section
SetOutputFilter DEFLATE 
Header set Expires "max-age=29030400, public" 
Header unset ETag 
FileETag None 

ExpiresActive On 
ExpiresDefault A600 
ExpiresByType image/x-icon A2592000 
ExpiresByType application/x-javascript A604800 
ExpiresByType text/css A604800 
ExpiresByType image/gif A2592000 
ExpiresByType image/png A2592000 
ExpiresByType image/jpeg A2592000 
ExpiresByType text/plain A1200 
ExpiresByType application/x-shockwave-flash A2592000 
ExpiresByType video/x-flv A2592000 
ExpiresByType application/pdf A2592000 
ExpiresByType text/html A600

After done this now test the site you will see the different

  • Optimize and repair SQL Database;

One way to do is to go into Mysql and do it manually or set a
cronjob

Or there is some extension which can do that for you such as SM2 db Health Check. This extension automatically repairs and optimises the database.

  • Compress images and get rid of the images you don’t need
  • Enable gzip

Gziping a site compresses the HTML  content into the smallest size possible, the browser then decompresses it (when viewed) at a speed that can be considerably quicker than downloading the original uncompressed HTML.

Just to point out this only works if your web-host supports Gzip and is only benefical if your site is quite HTML heavy. To enable Gzip go to Site > Global Configuration > Server then click on the enable button in the "Gzip site compression" section to the left.

 

Pin It

JOIN THE DISCUSSION

Joomla SEO by MijoSEF

Copyright © Myproffs 2015 © Shammah Limited All rights reserved. England and Wales company registration number 8128278 .

Top Desktop version