Can anyone please let me know how to speed up my web site

Discussion regarding Joomla! 1.5 Performance issues.
Locked
seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Can anyone please let me know how to speed up my web site

Post by seaside man » Mon Jun 04, 2012 6:03 pm

hi, i have been struggling for a year now with the speed of my website http://www.in2town.co.uk this site tells me my speed is 4.55 sconds http://tools.pingdom.com/fpt/#!/lldpyri ... town.co.uk while http://gtmetrix.com/reports/www.in2town.co.uk/0s9s92do tells me 2.56 seconds. Sometimes the speed is a lot higher than this.

My hosting company are telling me i need to make my dedicated server and want to charge me £160 per month for a bigger dedicated server but i do not have that each month. they claim it will speed up my site but they said this when they wanted me to have a dedicated server and it did not make any difference.

I am wanting someone to come a long and really help me solve the problems i am having and help me to get the site faster. i am finding that when you load the main home page it is slow and seems when you are going from section to section like from the home page to the travel section, it is even slower.

I would be very grateful if someone could come along and advise me on what i need to do to speed up the site as i am losing visitors because of the slowness of my site

any help would be great
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

qwebz
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Jun 04, 2012 5:57 pm

Re: Can anyone please let me know how to speed up my web sit

Post by qwebz » Mon Jun 04, 2012 6:28 pm

My first thought would be css minimize, and cache settings modifications or plugin. That should help to some extent at the very least.

http://extensions.joomla.org/extensions ... ance/12088

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Can anyone please let me know how to speed up my web sit

Post by MoonfireArt » Mon Jun 04, 2012 6:51 pm

This site loaded up extremely fast on my machine, and I am in the USA!

You have a Grade B (82) in Yslow, which is pretty dang good. I also see you have no expires headers, which can be added in the .htaccess files. You also have 8 external Javascript files, which seems like a lot (each is an HTTP request, and slows the page down). You've got Jquery, and mootools, and K2's javascript, and one for measuring page spped (get rid of that and use Yslow in firefox's Firebug extension).

Your images are also huge for the size they are. Images that size should be 12K or less, and yours are around 40. Break out Photoshop and increase the compression as far as you can without losing quality (Save for web abd devices is good for this). You can also scale the images to the proper size, if needed (this will save more space).

Minifying stylesheets is worthless here, yours are only 24K total. In fact your whole page is only 514K, which should be around 2 seconds on any decent (300K) broadband. My guess is it's all of the external Javascript files, and all of the non-cached images slowing you down. Make sure to add those expire's headers.

Also, enable Joomla's cache if you haven't already.
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 7:25 pm

MoonfireArt wrote:This site loaded up extremely fast on my machine, and I am in the USA!

You have a Grade B (82) in Yslow, which is pretty dang good. I also see you have no expires headers, which can be added in the .htaccess files. You also have 8 external Javascript files, which seems like a lot (each is an HTTP request, and slows the page down). You've got Jquery, and mootools, and K2's javascript, and one for measuring page spped (get rid of that and use Yslow in firefox's Firebug extension).

Your images are also huge for the size they are. Images that size should be 12K or less, and yours are around 40. Break out Photoshop and increase the compression as far as you can without losing quality (Save for web abd devices is good for this). You can also scale the images to the proper size, if needed (this will save more space).

Minifying stylesheets is worthless here, yours are only 24K total. In fact your whole page is only 514K, which should be around 2 seconds on any decent (300K) broadband. My guess is it's all of the external Javascript files, and all of the non-cached images slowing you down. Make sure to add those expire's headers.

Also, enable Joomla's cache if you haven't already.
This is excellent advice. I am not that technical so step by step instructions would be great.

1. I have tried expires header before but it did not do anything, but the trouble is, there are so many different codes around so i am not sure which one is the right one, so if you could point me out to the right code to use then that would be great. what i have to be careful of is, my site has articles updated all day long so i need to make sure the readers do not have to keep clearing their cache to see the new articles.

2. I am using k2, so i am not sure if i can or how to get rid of mootools and also if i can get rid of jquery. can you let me know about the page speed module, this maybe something that my hosting company have added on, is this slowing my site down if so then i will get rid of it.

3. images. I have tried to reduce my images and have read about png but i have tried that and they have gone bigger in size. can you let me know the best way to use photoshop to reduce the size. i normally just set it to use for websites to try and get the smallest size, is there something different i should be doing.

many thanks for this, this is amazing
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Can anyone please let me know how to speed up my web sit

Post by MoonfireArt » Mon Jun 04, 2012 7:38 pm

1). JUst so happens there's an article about this with code examples in this month's Joola Magazine. Check it out, it should break it down nicely for you. http://magazine.joomla.org/issues/Issue ... AKIN-Works

2) It's not just k2, but could be any of your extensions that use JQuery/Mootools. Obviously at least 1 uses JQery, as that is not part of the Joomla core. Take a look at all of your extensions (you mat have to visit the developer's websites), including core extensions, to see if any of them use MooTools. If not, you can likely safely disable this, though it requires some alterations to your template's index.php file.

3) Check out the space the intended placement of the image. Determine it's height and width in pixels. Then use the image size dialogue to change the image to these dimensions and the resolution to 72 pixels. Then go to "save for web and devices", choose JPEG, and for the quality select Medium (30%) and look at the preview. If it looks good, go with that. If not, bump it up to high and then check. It also tells you the file size on the lower left before you save, which is handy. If you'd like, you can PM me a sample original image, and I can see how far down I can get it before losing clarity.
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 7:54 pm

i am just reading the article now, with reference to Expires headers, it says it is similar to ETag but can have different expiration dates per file type. We are telling the browser that this file should be refreshed every so many days/weeks/months.

now when i used the expries header before, i found that the readers had to keep refreshing their cache to see the latest articles, this is the only thing i could put it down to, i would like to know if the expires header was causing it, and if not then i will add it again
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 7:55 pm

with reading the article i am not sure what part of it i should add to my htaccess file which is joomla 1.5
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Can anyone please let me know how to speed up my web sit

Post by MoonfireArt » Mon Jun 04, 2012 7:57 pm

Shouldn't make a difference. just add the part about the expires headers directly to your .htaccess.
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 8:15 pm

a bit confused at the moment, this is my htaccess file before i have made any changes

RewriteEngine On
RewriteCond %{HTTP_HOST} ^in2town.co.uk
RewriteRule (.*) http://www.in2town.co.uk/$1 [R=301,L]
##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z 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
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
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
########## 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 <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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 - 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

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

as you can see it has the expires header in but not making any difference, i thought i had deleted it but i have not. how can i tell if this is working or not
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Can anyone please let me know how to speed up my web sit

Post by MoonfireArt » Mon Jun 04, 2012 8:20 pm

Why the wierd numbers in your expires headers?? Erase everything from expires active on to Expires by Type text/html A600, and replace it with this.

Code: Select all

########## Begin - Optimal default expiration time
## Note: this might cause problems and you might have to comment it out by
## placing a hash in front of this section's lines

        # Enable expiration control
        ExpiresActive On
 
        # Default expiration: 1 hour after request
        ExpiresDefault "now plus 1 hour"
 
        # CSS and JS expiration: 1 week after request
        ExpiresByType text/css "now plus 1 week"
        ExpiresByType application/javascript "now plus 1 week"
        ExpiresByType application/x-javascript "now plus 1 week"
 
        # Image files expiration: 1 month after request
        ExpiresByType image/bmp "now plus 1 month"
        ExpiresByType image/gif "now plus 1 month"
        ExpiresByType image/jpeg "now plus 1 month"
        ExpiresByType image/jp2 "now plus 1 month"
        ExpiresByType image/pipeg "now plus 1 month"
        ExpiresByType image/png "now plus 1 month"
        ExpiresByType image/svg+xml "now plus 1 month"
        ExpiresByType image/tiff "now plus 1 month"
        ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
        ExpiresByType image/x-icon "now plus 1 month"
        ExpiresByType image/ico "now plus 1 month"
        ExpiresByType image/icon "now plus 1 month"
        ExpiresByType text/ico "now plus 1 month"
        ExpiresByType application/ico "now plus 1 month"
        ExpiresByType image/vnd.wap.wbmp "now plus 1 month"
        ExpiresByType application/vnd.wap.wbxml "now plus 1 month"
        ExpiresByType application/smil "now plus 1 month"
 
        # Audio files expiration: 1 month after request
        ExpiresByType audio/basic "now plus 1 month"
        ExpiresByType audio/mid "now plus 1 month"
        ExpiresByType audio/midi "now plus 1 month"
        ExpiresByType audio/mpeg "now plus 1 month"
        ExpiresByType audio/x-aiff "now plus 1 month"
        ExpiresByType audio/x-mpegurl "now plus 1 month"
        ExpiresByType audio/x-pn-realaudio "now plus 1 month"
        ExpiresByType audio/x-wav "now plus 1 month"
 
        # Movie files expiration: 1 month after request
        ExpiresByType application/x-shockwave-flash "now plus 1 month"
        ExpiresByType x-world/x-vrml "now plus 1 month"
        ExpiresByType video/x-msvideo "now plus 1 month"
        ExpiresByType video/mpeg "now plus 1 month"
        ExpiresByType video/mp4 "now plus 1 month"
        ExpiresByType video/quicktime "now plus 1 month"
        ExpiresByType video/x-la-asf "now plus 1 month"
        ExpiresByType video/x-ms-asf "now plus 1 month"

########## End - Optimal expiration time
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 8:38 pm

just added this and for some reason in yslow it is telling me to add expires header.
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 8:40 pm

this is what the file looks like now

RewriteEngine On
RewriteCond %{HTTP_HOST} ^in2town.co.uk
RewriteRule (.*) http://www.in2town.co.uk/$1 [R=301,L]
##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z 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
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
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
########## 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 <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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 - Joomla! core SEF Section
########## Begin - Optimal default expiration time
## Note: this might cause problems and you might have to comment it out by
## placing a hash in front of this section's lines

# Enable expiration control
ExpiresActive On

# Default expiration: 1 hour after request
ExpiresDefault "now plus 1 hour"

# CSS and JS expiration: 1 week after request
ExpiresByType text/css "now plus 1 week"
ExpiresByType application/javascript "now plus 1 week"
ExpiresByType application/x-javascript "now plus 1 week"

# Image files expiration: 1 month after request
ExpiresByType image/bmp "now plus 1 month"
ExpiresByType image/gif "now plus 1 month"
ExpiresByType image/jpeg "now plus 1 month"
ExpiresByType image/jp2 "now plus 1 month"
ExpiresByType image/pipeg "now plus 1 month"
ExpiresByType image/png "now plus 1 month"
ExpiresByType image/svg+xml "now plus 1 month"
ExpiresByType image/tiff "now plus 1 month"
ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
ExpiresByType image/x-icon "now plus 1 month"
ExpiresByType image/ico "now plus 1 month"
ExpiresByType image/icon "now plus 1 month"
ExpiresByType text/ico "now plus 1 month"
ExpiresByType application/ico "now plus 1 month"
ExpiresByType image/vnd.wap.wbmp "now plus 1 month"
ExpiresByType application/vnd.wap.wbxml "now plus 1 month"
ExpiresByType application/smil "now plus 1 month"

# Audio files expiration: 1 month after request
ExpiresByType audio/basic "now plus 1 month"
ExpiresByType audio/mid "now plus 1 month"
ExpiresByType audio/midi "now plus 1 month"
ExpiresByType audio/mpeg "now plus 1 month"
ExpiresByType audio/x-aiff "now plus 1 month"
ExpiresByType audio/x-mpegurl "now plus 1 month"
ExpiresByType audio/x-pn-realaudio "now plus 1 month"
ExpiresByType audio/x-wav "now plus 1 month"

# Movie files expiration: 1 month after request
ExpiresByType application/x-shockwave-flash "now plus 1 month"
ExpiresByType x-world/x-vrml "now plus 1 month"
ExpiresByType video/x-msvideo "now plus 1 month"
ExpiresByType video/mpeg "now plus 1 month"
ExpiresByType video/mp4 "now plus 1 month"
ExpiresByType video/quicktime "now plus 1 month"
ExpiresByType video/x-la-asf "now plus 1 month"
ExpiresByType video/x-ms-asf "now plus 1 month"

########## End - Optimal expiration time
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
MoonfireArt
Joomla! Explorer
Joomla! Explorer
Posts: 466
Joined: Wed Feb 29, 2012 3:27 pm

Re: Can anyone please let me know how to speed up my web sit

Post by MoonfireArt » Mon Jun 04, 2012 8:41 pm

did you empty your browser's cache?
The burned hand teaches best... - The Two Towers

http://webdesign.moonfireartstudios.com Joomla web design for small businesses

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 8:57 pm

this is my file at the moment

RewriteEngine On
RewriteCond %{HTTP_HOST} ^in2town.co.uk
RewriteRule (.*) http://www.in2town.co.uk/$1 [R=301,L]
##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z 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
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
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
########## 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 <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%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 - Joomla! core SEF Section
########## Begin - Optimal default expiration time
## Note: this might cause problems and you might have to comment it out by
## placing a hash in front of this section's lines

# Enable expiration control
ExpiresActive On

# Default expiration: 1 hour after request
ExpiresDefault "now plus 1 hour"

# CSS and JS expiration: 1 week after request
ExpiresByType text/css "now plus 1 week"
ExpiresByType application/javascript "now plus 1 week"
ExpiresByType application/x-javascript "now plus 1 week"

# Image files expiration: 1 month after request
ExpiresByType image/bmp "now plus 1 month"
ExpiresByType image/gif "now plus 1 month"
ExpiresByType image/jpeg "now plus 1 month"
ExpiresByType image/jp2 "now plus 1 month"
ExpiresByType image/pipeg "now plus 1 month"
ExpiresByType image/png "now plus 1 month"
ExpiresByType image/svg+xml "now plus 1 month"
ExpiresByType image/tiff "now plus 1 month"
ExpiresByType image/vnd.microsoft.icon "now plus 1 month"
ExpiresByType image/x-icon "now plus 1 month"
ExpiresByType image/ico "now plus 1 month"
ExpiresByType image/icon "now plus 1 month"
ExpiresByType text/ico "now plus 1 month"
ExpiresByType application/ico "now plus 1 month"
ExpiresByType image/vnd.wap.wbmp "now plus 1 month"
ExpiresByType application/vnd.wap.wbxml "now plus 1 month"
ExpiresByType application/smil "now plus 1 month"

# Audio files expiration: 1 month after request
ExpiresByType audio/basic "now plus 1 month"
ExpiresByType audio/mid "now plus 1 month"
ExpiresByType audio/midi "now plus 1 month"
ExpiresByType audio/mpeg "now plus 1 month"
ExpiresByType audio/x-aiff "now plus 1 month"
ExpiresByType audio/x-mpegurl "now plus 1 month"
ExpiresByType audio/x-pn-realaudio "now plus 1 month"
ExpiresByType audio/x-wav "now plus 1 month"

# Movie files expiration: 1 month after request
ExpiresByType application/x-shockwave-flash "now plus 1 month"
ExpiresByType x-world/x-vrml "now plus 1 month"
ExpiresByType video/x-msvideo "now plus 1 month"
ExpiresByType video/mpeg "now plus 1 month"
ExpiresByType video/mp4 "now plus 1 month"
ExpiresByType video/quicktime "now plus 1 month"
ExpiresByType video/x-la-asf "now plus 1 month"
ExpiresByType video/x-ms-asf "now plus 1 month"

########## End - Optimal expiration time



########## End - Rewrite rules to block out some common exploits
Redirect 301 /Jennifer-Aniston-upset-over-Brad-Pitt-Marriage /news/have-your-say/jennifer-aniston-upset-over-brad-pitt-marriage
Redirect 301 /In2town-Gossip/Liz-Hurley-Wants-Her-Husband-Back /news/have-your-say/liz-hurley-wants-her-husband-back
Redirect 301 /News-Celebrity/Take-That-and-Robbie-Williams-do-it-again /news/have-your-say/take-that-and-robbie-williams-do-it-again
Redirect 301 /Kevin-McCloud-does-not-like-the-word-Poverty /news/have-your-say/kevin-mccloud-does-not-like-the-word-poverty
Redirect 301 /Latest-Travel-News/Singapore-Tourist-Information-Singapore-a-must-for-Holidays/menu-id-4592 /news/holidays/singapore-tourist-information-singapore-a-must-for-holidays
Redirect 301 /Travel-Articles/Holiday-makers-are-rushing-to-buy-cheap-flights-to-Benidorm/menu-id-4998 /news/flight-news/holiday-makers-are-rushing-to-buy-cheap-flights-to-benidorm
Redirect 301 /The-Latest-Health-News/Stop-Biting-Your-Nails/menu-id-4744 /news/healthy-living/stop-biting-your-nails-with-hypnotherapy
Redirect 301 /Woman-celebrates-after-losing-weight-with-Weight-Loss-Hypnosis /news/gastric-band-hypnotherapy/woman-celebrates-after-losing-weight-with-gastric-band-hypnosis
Redirect 301 /Health-News-/-Stop-Smoking-Hypnosis-really-works-says-expert /news/health/stop-smoking-hypnosis-really-works-says-stop-smoking-expert
Redirect 301 /Animal-Health-News/Pet-Advice-Kennel-Cough-Advice-for-your-Pets/menu-id-4954 /news/dog-care/dog-kennel-cough
Redirect 301 /Travel-News/Flying-to-Australia-consumers-are-turning-their-back-on-Travel-Agents-over-cheap-flights/menu-id-4592 /news/flight-news/flying-to-australia-consumers-turn-their-backs-on-travel-agents-for-cheap-flights-to-australia
Redirect 301 /The-Latest-Health-News/Childbirth-Hypnotherapy/menu-id-4744 /news/health/childbirth-hypnotherapy
Redirect 301 /Travel-News/Brazil-Holidays-is-becoming-a-huge-hit-with-British-Tourist/menu-id-4592 /news/holidays/brazil-holidays-is-becoming-a-huge-hit-with-british-tourist
Redirect 301 /Celebrity-Gossip-Celebrity-News-and-latest-celebrity-gossip /Showbiz-Gossip
Redirect 301 /Latest-Travel-News/Travel-Magazine-reveals-secrets-to-finding-Cheap-Flights /news/flight-news/saving-money-on-flights
Redirect 301 /Lingerie-Brands-expert-says-Lingerie-improves-your-sex-life /lingerie-helps-improve-your-sex-life
Redirect 301 /Weight-Loss-Hypnosis/Hypnotherapy-for-Weight-Loss-is-the-Guaranteed-way-to-Lose-Weight /news/gastric-band-hypnotherapy/weight-loss-hypnotherapy-does-work-according-to-weight-loss-experts
Redirect 301 /Animal-Health-News/Dog-training/menu-id-4954 /news/cat-advice/pdsa-says-dog-training-is-important
Redirect 301 /Department-of-Health-says-Weight-Loss-Surgery-carry-a-risk /news/gastric-band-hypnotherapy/department-of-health-says-weight-loss-surgery-carry-a-risk
Redirect 301 /weight-loss-hypnotherapy/Is-There-An-Alternative-to-Gastric-Band-Surgery /news/gastric-band-hypnotherapy/department-of-health-says-weight-loss-surgery-carry-a-risk
Redirect 301 /mother-of-two-hails-gastric-band-hypnotherapy /news/gastric-band-hypnotherapy/woman-celebrates-after-losing-weight-with-gastric-band-hypnosis
Redirect 301 /Weight-Loss-Hypnosis/More-and-More-people-using-Weight-Loss-Hypnotherapy /news/gastric-band-hypnotherapy/more-people-are-using-weight-loss-hypnosis-to-beat-obesity
Redirect 301 /Veterinary-Advice-Caring-for-epileptic-pets /news/cat-advice/veterinary-advice-caring-for-epileptic-pets
Redirect 301 /los-zocos-apartments-holiday-review /news/holiday-reviews/los-zocos-hotel-lanzarote-a-lot-of-work-to-be-done
Redirect 301 /PDSA-warns-Cat-Owners-about-Asthma /news/cat-advice/pdsa-warns-cat-owners-about-asthma
Redirect 301 /Basques-and-Corsets /sweet-streak-ribbons-overbust-corset-style-bustier
Redirect 301 /Animal-Health-News/PDSA-Your-bed-could-be-a-bugs-paradise-warns-PDSA/menu-id-4954 /news/online-vet-advice/protect-yourself-against-pet-fleas
Redirect 301 /Animal-Health-News/PDSA-Wrapping-paper-is-top-dog-for-pets-this-Christmas/menu-id-4954 /news/pet-health/your-pet-loves-christmas-wrapping-paper
Redirect 301 /The-Latest-Health-News/Hypnotherapy-To-Stop-Smoking-does-it-Work/menu-id-4744 /news/health/stop-smoking-hypnosis-really-works-says-stop-smoking-expert
Redirect 301 /Have-Your-Say/Have-Your-Say-Would-You-Try-Hypnosis-To-Lose-Weight /news/in-the-news/have-your-say-would-you-try-hypnosis-to-lose-weight
Redirect 301 /Health-News-/Understanding-how-Hypnosis-can-help-Irritable-Bowel-Syndrome /news/nlp-advice/treatment-of-irritable-bowel-syndrome
Redirect 301 /Jamaica-has-become-a-hit-with-Cheap-Flight-travellers /news/trip-advisor/jamaica-has-become-a-hit-with-cheap-flight-travellers
Redirect 301 /weight-loss-hypnotherapy/Weight-Loss-Hypnotherapy-Can-Achieve-Same-Results-As-Gastric-Bypass /news/weightloss/what-is-trance-band-hypno-band-for-weight-loss
Redirect 301 /Back-to-Black-Singer-Amy-Winehouse-I-am-bisexual /news/have-your-say/back-to-black-singer-amy-winehouse-i-am-bisexual
Redirect 301 /PDSA-crowns-its-2008-09-Pet-Fit-Club-Champ /news/have-your-say/pdsa-crowns-its-2008-09-pet-fit-club-champ
Redirect 301 /Lingerie/Sweet-Streak-Parisian-Ruffles-Lace-Up-Bustier-G-String-and-Skirt-Set /sweet-streak-lace-and-mesh-overlay-corset-style-bustier-set
Redirect 301 /News-Celeb-News/Cher-Lloyd-worried-about-being-in-the-bottom-two /news/have-your-say/cher-lloyd-worried-about-being-in-the-bottom-two
Redirect 301 /Harriet-Harman-pleads-Guilty-in-court /news/have-your-say/harriet-harman-pleads-guilty-in-court
Redirect 301 /X-Factor-Judge-Cheryl-Cole-upset-fans-parents /news/have-your-say/x-factor-judge-cheryl-cole-upset-fans-parents
Redirect 301 /Susan-Boyle-left-shaken-and-upset /news/have-your-say/susan-boyle-left-shaken-and-upset
Redirect 301 /Prince-William-girlfriend-Kate-Middleton-angry-with-Royal-Family /news/have-your-say/prince-william-girlfriend-kate-middleton-angry-with-royal-family
Redirect 301 /Sylvester-Stallone-says-men-do-not-need-Viagra /news/have-your-say/sylvester-stallone-says-men-do-not-need-viagra
Redirect 301 /Twilight-Robert-Pattinson-jealous-of-Harry-Potter-star /news/have-your-say/twilight-robert-pattinson-jealous-of-harry-potter-star
Redirect 301 /Health-News-/Weight-Loss-Tips-Losing-Weight-with-Hypnosis /news/gastric-band-hypnosis/weight-loss-tips-losing-weight-with-hypnosis
Redirect 301 /Kayne-West-has-car-accident /news/have-your-say/kayne-west-has-car-accident
Redirect 301 /Tesco-Special-Offers/Tesco-Direct-Offer-10-Pounds-Off-Food-Shopping /news/tesco-special-offers/tesco-special-offer-to-customers-gives-them-ten-pounds-free
Redirect 301 /Tesco-Special-Offers/Tesco-Supermarket-announce-1o-Pounds-Off-Food-Shopping /news/tesco-special-offers/tesco-special-offer-to-customers-gives-them-ten-pounds-free
Redirect 301 /10-pounds-off-with-Tesco-Shopping-with-their-new-campaign /news/tesco-special-offers/tesco-special-offer-to-customers-gives-them-ten-pounds-free
Redirect 301 /Health-News-/Well-known-expert-offering-free-Irritable-Bowel-Syndrome-Advice /news/nlp-advice/treatment-of-irritable-bowel-syndrome
Redirect 301 /Cyprus-becoming-a-hot-spot-with-Cheap-Flights /news/trip-advisor/cyprus-tourism-goes-through-the-roof
Redirect 301 /PDSA-animal-magazine-and-animal-advice /Pet-Health-Advice
Redirect 301 /Coronation-Street-fans-are-in-for-a-shock /news/coronation-street-update/coronation-street-kevin-webster-is-angry-with-sally-over-frank-affair
Redirect 301 /The-Latest-Health-News/Stop-Smoking-with-Hypnotherapy-it-works/menu-id-4744 /news/health/stop-smoking-hypnosis-really-works-says-stop-smoking-expert
Redirect 301 /The-Latest-Health-News/Self-confidence/menu-id-4744 /news/healthy-living/self-confidence-can-be-increased-with-hypnotherapy
Redirect 301 /89-Per-Cent-Of-Men-Prefer-Natural-Breasts-To-Fake-The-Heat-Body-Survey /news/healthy-living/89-per-cent-of-men-prefer-natural-breasts-to-fake
Redirect 301 /Free-Parenting-Advice/30000-Pregnant-Women-a-Year-Lose-Their-Jobs/menu-id-4955 /news/parenting/thirty-thousand-pregnant-women-a-year-lose-their-jobs
Redirect 301 /Gastric-Band/We-Ask-A-Gastric-Band-Hypnotherapist-About-How-To-Lose-Weight /Gastric-Band-Hypnotherapy
Redirect 301 /Cheap-Flights/Cheap-Flights-Airlines-does-not-mean-low-quality/menu-id-5048 /news/trip-advisor/cheap-flights-airlines-does-not-mean-low-quality
Redirect 301 /High-Street-travel-agents-attacked-over-high-prices /news/parenting/high-street-travel-agents-attacked-over-high-prices
Redirect 301 /FATLOSS-TIPS /news/gastric-band-hypnosis/weight-loss-tips-losing-weight-with-hypnosis
Redirect 301 /The-Latest-Health-News/Post-Traumatic-Stress-Disorder-with-Hypnotherapy/menu-id-4744 /news/healthy-living/post-traumatic-stress-disorder-with-hypnotherapy
Redirect 301 /Weight-Loss-Surgery-cost-me-my-marriage /news/gastric-hypno-band/weight-loss-surgery-cost-me-my-marriage
Redirect 301 /Latest-Travel-News/Are-our-High-Street-Travel-Agents-in-trouble /news/flight-news/travel-agents-are-no-help-for-cheap-package-holidays
Redirect 301 /Online-Dating/Relationship-expert-offer-Singles-Online-Dating-Advice /news/lifestyle/relationship-expert-offer-singles-online-dating-advice
Redirect 301 /Latest-Travel-News/Travel-Agents-are-no-help-for-cheap-package-holidays /news/flight-news/can-travel-agents-compete-against-cheap-flights-airlines
Redirect 301 /Anger-can-be-controlled-with-Anger-Management-Therapy /news/healthy-living/anger-can-be-controlled-with-anger-management-therapy
Redirect 301 /Health-News-/Stomach-Band-Surgery-versus-Weight-Loss-Hypnosis /news/gastric-band-hypnotherapy/stomach-band-surgery-versus-weight-loss-hypnosis
Redirect 301 /The-Latest-Health-News/phobia-treatment-with-hypnotherapy/menu-id-4744 /news/healthy-living/phobia-treatment-with-hypnotherapy
Redirect 301 /Health-News-/Weight-Loss-Hypnosis-expert-offers-free-consultations /Gastric-Band-Hypnotherapy
Redirect 301 /Free-Parenting-Advice/What-Makes-a-Perfect-Parent-/menu-id-4955 /news/parenting/what-makes-a-perfect-parent
Redirect 301 /Free-Parenting-Advice/Reading-Your-Baby-s-Signals/menu-id-4955 /news/parenting/what-makes-a-perfect-parent
Redirect 301 /Gambling-Addiction/Gambling-Addiction-can-be-helped-with-Hypnotherapy /news/healthy-living/gambling-addiction-can-be-helped-with-hypnotherapy
Redirect 301 /Latest-Travel-News/Cheap-Flights-Airline-Ryanair-upsets-passengers/menu-id-5001 /news/ryaniar-news/ryanair-make-passengers-angry-over-new-charges
Redirect 301 /The-Latest-Health-News/Hypnosis-Hypnotherapy-for-Relationships/menu-id-4744 /Gastric-Band-Hypnotherapy
Redirect 301 /Have-Your-Say/Have-Your-Say-would-you-try-Weight-Loss-Hypnosis /news/in-the-news/have-your-say-would-you-try-hypnosis-to-lose-weight
Redirect 301 /Cheryl-Cole/Is-This-The-End-For-Cheryl-Cole-And-Derek-Hough /Cheryl-Cole
Redirect 301 /Celebrity-News-Stories/Is-This-The-End-of-Katie-Price-Marriage /Katie-Price
Redirect 301 /In2town-Showbiz-In-The-News/Family-worried-over-X-Factor-Cheryl-Cole /X-Factor
Redirect 301 /In2town-Showbiz-News/Cheryl-Cole-Has-Finally-Gone-Public-With-Her-Romance /Cheryl-Cole
Redirect 301 /Celebrity-Gossip/No-Girls-Aloud-reunion-after-Cheryl-Cole-deal /Cheryl-Cole
Redirect 301 /Celebrities-Gossip/X-Factor-contestant-devastated-over-Prostitute-story /X-Factor
Redirect 301 /Daily-News/Katie-Price-To-Join-The-X-Factor /X-Factor
Redirect 301 /Entertainment-Gossip/Is-this-years-X-Factor-a-fix-fans-want-to-know /X-Factor
Redirect 301 /Entertainment-Gossip/Cher-Lloyd-not-happy-with-X-Factor-reports /X-Factor
Redirect 301 /Gossip-Celebrities/Katie-Price-angry-over-banning-order /Katie-Price
Redirect 301 /In-The-News/Girls-Aloud-Singer-does-not-want-children-yet /Cheryl-Cole
Redirect 301 /In2town-Celebrity-Gossip/Katie-Price-and-Alex-Reid-to-Split-Up /Katie-Price
Redirect 301 /News-Celebrity-Gossip/X-Factor-Simon-Cowell-worried-over-Wagner /X-Factor
Redirect 301 /News-Gossip/Do-not-slate-me-X-Factor-Wagner-says /X-Factor
Redirect 301 /News-Showbiz/Peter-Andre-and-Katie-Price-getting-back-together /Katie-Price
Redirect 301 /Showbiz-latest-/Cheryl-Cole-Man-Wants-To-Fight-For-Her-Love /Cheryl-Cole
Redirect 301 /Showbiz-latest-/Kerry-Katona-Wants-A-Top-Ten-Hit /Kerry-Katona
Redirect 301 /Showbiz-latest-/Peter-Andre-Denies-Love-Life-Claims /Peter-Andre
Redirect 301 /Showbizz-News/Cheryl-Cole-to-reveal-all-on-Piers-Morgan-show /Cheryl-Cole
Redirect 301 /Showbizz-News/Simon-Cowell-Should-Pick-Me-For-The-X-Factor /X-Factor
Redirect 301 /The-X-Factor/Is-Louis-Walsh-sucking-up-to-Simon-Cowell /X-Factor
Redirect 301 /The-X-Factor/Cher-Lloyd-mum-asks-X-Factor-fans-to-support-her-daughter /X-Factor
Redirect 301 /The-X-Factor/The-Stress-is-getting-too-much-for-X-Factor-Cher /X-Factor
Redirect 301 /The-X-Factor/X-Factor-Cher-Lloyd-hits-out-over-Anorexic-stories /X-Factor
Redirect 301 /Uk-Showbiz-News/X-Factor-contestant-heart-broken-after-being-told-to-leave-the-UK /X-Factor
Redirect 301 /Celebrity-Gossip/Jedward-are-back-on-The-X-Factor /X-Factor
Redirect 301 /Entertainment-Headlines/Derek-Hough-Thinks-Cheryl-Cole-Has-Bad-Taste /Cheryl-Cole
Redirect 301 /Entertainment-Tonight/Is-This-the-end-of-Cheryl-Cole-X-Factor-dreams /Cheryl-Cole
Redirect 301 /Busted-Celebrity/Kerry-Katona-says-Katie-Price-surgery-makes-her-look-odd /Kerry-Katona
Redirect 301 /Tesco-launch-campaign-to-encourage-shoppers-to-shop-online /news/tesco-special-offers/tesco-special-offer-to-customers-gives-them-ten-pounds-free
Redirect 301 /PDSA-animal-magazine-and-animal-advice.html /Pet-Health-Advice
Redirect 301 /Cheap-Travel-Tickets /Benidorm-News-and-Benidorm-Hotel-Reviews
Redirect 301 /Free-Bingo-Bonus /No-Deposit-Bingo
Redirect 301 /Bingo-News /No-Deposit-Bingo
Redirect 301 /Holiday-Hotel-Reviews /Benidorm-News-and-Benidorm-Hotel-Reviews
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Mon Jun 04, 2012 8:58 pm

i read this which is for when things are not working in the htaccess file, not sure if this is relevant

Troubleshooting

When you put configuration directives in a .htaccess file, and you don't get the desired effect, there are a number of things that may be going wrong.

Most commonly, the problem is that AllowOverride is not set such that your configuration directives are being honored. Make sure that you don't have a AllowOverride None in effect for the file scope in question. A good test for this is to put garbage in your .htaccess file and reload. If a server error is not generated, then you almost certainly have AllowOverride None in effect.

If, on the other hand, you are getting server errors when trying to access documents, check your Apache error log. It will likely tell you that the directive used in your .htaccess file is not permitted. Alternately, it may tell you that you had a syntax error, which you will then need to fix.
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
aashishbisht
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Oct 27, 2009 12:10 pm

Re: Can anyone please let me know how to speed up my web sit

Post by aashishbisht » Fri Jun 08, 2012 4:05 pm

Try adding this in the htaccess file:

<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/ ... ml#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>

Also leverage browser caching through:

<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
<FilesMatch "\.(ico|gz|JPG|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Cache-control
Header set Expires "access plus 1 month"
</FilesMatch>

Now, unless there are external requests to outside server, the above codes should work.

You can use the plugin JCH Optimize http://extensions.joomla.org/extensions ... ance/12088, to automate these processes. There is another extension called JFinalizer http://extensions.joomla.org/extensions ... ance/11366. You would to play with different configurations and test if the website doesn't break. I am assuming that you are already using it since the YSlow grade shows as 82 which is pretty good.

You can install Page Speed add-on and check if you are scaling images through the HTML or coding. If yes, minify that to as minimum as possible.

Last option could be using CDN :D, but that is another thing.

Warm Regards,
Aashish Bisht
http://www.zaptechsolutions.com

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Sat Jun 09, 2012 3:45 pm

aashishbisht wrote:Try adding this in the htaccess file:

<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/ ... ml#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>

Also leverage browser caching through:

<IfModule mod_headers.c>
Header unset ETag
Header unset Last-Modified
</IfModule>
FileETag None
<FilesMatch "\.(ico|gz|JPG|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Cache-control
Header set Expires "access plus 1 month"
</FilesMatch>

Now, unless there are external requests to outside server, the above codes should work.

You can use the plugin JCH Optimize http://extensions.joomla.org/extensions ... ance/12088, to automate these processes. There is another extension called JFinalizer http://extensions.joomla.org/extensions ... ance/11366. You would to play with different configurations and test if the website doesn't break. I am assuming that you are already using it since the YSlow grade shows as 82 which is pretty good.

You can install Page Speed add-on and check if you are scaling images through the HTML or coding. If yes, minify that to as minimum as possible.

Last option could be using CDN :D, but that is another thing.

Warm Regards,
Aashish Bisht
http://www.zaptechsolutions.com
seems to have worked thanks. but the trouble i have now is my page sized has increased, not sure why, also my site to me seems slow. could you test it from going section to section, so for example going from the home page to the travel page, and to the showbiz page.

it seems to me that the site going from one page to another is slow and need to work out why that is

many thanks for the excellent help
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Sat Jun 09, 2012 3:50 pm

just looked here http://gtmetrix.com/reports/www.in2town.co.uk/qZ8P6wfV and for some reason still telling me to

Add Expires headers
F (0)

18%
Server High
What does this mean?
Add Expires headers

Use an Expires header to control how your site is cached on visitors' browsers.

Read more
There are 74 static components without a far-future expiration date.

* http://www.in2town.co.uk/cache/gk/3f40e ... 77f1a6.css
* http://www.in2town.co.uk/modules/mod_ai ... efault.css
* http://www.in2town.co.uk/plugins/system ... search.css
* http://www.in2town.co.uk/templates/gk_t ... u/mega.css
* http://www.in2town.co.uk/templates/gk_t ... esheet.css
* http://www.google-analytics.com/ga.js
* http://ajax.googleapis.com/ajax/libs/mo ... pressed.js
* http://www.in2town.co.uk/templates/gk_t ... ady_fix.js
* http://www.in2town.co.uk/media/system/js/modal.js
* http://www.in2town.co.uk/components/com ... ery.min.js
* http://www.in2town.co.uk/components/com_k2/js/k2.js
* http://www.in2town.co.uk/media/system/js/caption.js
* http://www.in2town.co.uk/templates/gk_t ... .script.js
* http://www.in2town.co.uk/modules/mod_ne ... ools-11.js
* http://www.in2town.co.uk/plugins/system ... _search.js
* http://www.in2town.co.uk/templates/gk_t ... nu/mega.js
* http://pagead2.googlesyndication.com/pagead/show_ads.js
* http://www.google.co.uk/coop/cse/brand? ... -box&lang=
* http://www.in2town.co.uk/templates/gk_t ... e1/bg1.jpg
* http://www.in2town.co.uk/templates/gk_t ... e1/bg2.png
* http://www.in2town.co.uk/templates/gk_t ... _color.png
* http://www.google.co.uk/cse/intl/en/ima ... ermark.gif
* http://www.in2town.co.uk/templates/gk_t ... btn_bg.jpg
* http://www.in2town.co.uk/templates/gk_t ... u_item.png
* http://www.in2town.co.uk/templates/gk_t ... arator.png
* http://www.in2town.co.uk/templates/gk_t ... active.png
* http://www.in2town.co.uk/templates/gk_t ... enu_bg.jpg
* http://www.in2town.co.uk/templates/gk_t ... r_dark.png
* http://www.in2town.co.uk/templates/gk_t ... mbs_bg.png
* http://www.in2town.co.uk/templates/gk_t ... s_icon.png
* http://www.in2town.co.uk/templates/gk_t ... bullet.png
* http://www.in2town.co.uk/templates/gk_t ... itcher.png
* http://www.in2town.co.uk/media/system/i ... osebox.png
* http://www.in2town.co.uk/images/news/in2townhead3.jpg
* http://www.in2town.co.uk/modules/mod_ne ... sp_549.jpg
* http://www.in2town.co.uk/modules/mod_ne ... sp_549.jpg
* http://www.in2town.co.uk/modules/mod_ne ... sp_549.jpg
* http://www.in2town.co.uk/images/stories ... ylcole.jpg
* http://www.in2town.co.uk/images/news/cash.jpg
* http://www.in2town.co.uk/images/news/hospiceweek.jpg
* http://www.in2town.co.uk/images/news/jeremyhunt1.jpg
* http://www.in2town.co.uk/images/news/davidcameron2.jpg
* http://www.in2town.co.uk/images/news/englishmoneyop.jpg
* http://www.in2town.co.uk/images/stories ... tsfood.jpg
* http://www.in2town.co.uk/images/stories/Health/gym.jpg
* http://www.in2town.co.uk/images/stories ... hagen1.jpg
* http://www.in2town.co.uk/images/hotelre ... ascook.jpg
* http://www.in2town.co.uk/images/stories ... trance.jpg
* http://www.in2town.co.uk/images/stories ... maica2.jpg
* http://www.in2town.co.uk/images/hotelre ... chotel.jpg
* http://www.in2town.co.uk/images/hotelre ... hotel1.jpg
* http://www.in2town.co.uk/images/PDSA/dogs21.jpg
* http://www.in2town.co.uk/images/PDSA/dogs7.jpg
* http://www.in2town.co.uk/images/stories/pets/cats2.jpg
* http://www.in2town.co.uk/images/stories ... wodogs.jpg
* http://www.in2town.co.uk/images/stories ... lossad.jpg
* http://www.tesco.com/affiliates/tradedo ... 00x250.gif
* http://www.in2town.co.uk/images/stories ... lcole3.jpg
* http://www.in2town.co.uk/images/stories ... porter.jpg
* http://www.in2town.co.uk/images/stories ... ylcrow.jpg
* http://www.in2town.co.uk/images/stories ... arlow2.jpg
* http://www.in2town.co.uk/images/stories ... x-reid.jpg
* http://www.in2town.co.uk/images/stories ... l.i.am.jpg
* http://www.in2town.co.uk/images/stories ... randop.jpg
* http://www.in2town.co.uk/images/stories ... iadean.jpg
* http://www.in2town.co.uk/images/stories ... debbie.jpg
* http://www.in2town.co.uk/images/stories ... erdale.jpg
* http://www.in2town.co.uk/images/stories ... street.jpg
* http://www.in2town.co.uk/images/stories ... street.jpg
* http://www.in2town.co.uk/templates/gk_twn2/favicon.ico
* http://pagead2.googlesyndication.com/pa ... ices_i.png
* http://pagead2.googlesyndication.com/pa ... ces_en.png
* http://pagead2.googlesyndication.com/pa ... n_embed.js
* http://pagead2.googlesyndication.com/pagead/osd.js
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
aashishbisht
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Oct 27, 2009 12:10 pm

Re: Can anyone please let me know how to speed up my web sit

Post by aashishbisht » Sat Jun 09, 2012 5:47 pm

I think you have disabled the Plugin which was compressing and combining your javascript/css files. Your YSlow grade has dropped from 82 to 70 now.

Please provide the following information:

1) Which Joomla Version are you using?
2) What all plugins you are using to optimize your website?
3) Any other way you are optimizing your website?
4) Post your htaccess file

Warm Regards,
Aashish Bisht

https://twitter.com/aashishbisht
http://www.zaptechsolutions.com

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Sat Jun 09, 2012 6:34 pm

hi i have changed anything, i just added what you said and it seems to have changed things. going to take the code out in a min and see if there is any difference.

using joomla 1.5

GZIP Page Compression set to no at the moment but will change that in a min

System - Cache
System - JCH_Optimize has not been enabled for a couple of week but will also turn that on and see what happens
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Tue Jun 12, 2012 10:52 am

found this tool to test the speed of the site but still showing it very very slow, to be honest doing my head in. i cannot seem to speed the site up. http://loads.in/
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

User avatar
Chamira Athauda
Joomla! Explorer
Joomla! Explorer
Posts: 440
Joined: Sat Apr 21, 2012 2:15 am
Location: Sri Lanka
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by Chamira Athauda » Thu Aug 16, 2012 3:32 am

This may be too late to help the orginal poster, but I have been looking to reduce the initial page load on a Joomla 2.5.1 site that used K2.

I found there is a setting in the code that determines the quality of the image re-size that K2 does for every image you upload through it. It creates multiple versions of the image suffixed with _S,_L,_XL &etc, resizes them using a deafult quality setting of 85%, and caches them. It is these cached images that are then re-used across the site. Not the original uploaded file.

This can bloat an original optimized file by about 50%+, even though the newly K2 re-sized image dimensions are EXACTLY the same as the dimensions of the file you uploaded!

The value is located in the <site root>/administrator/components/com_k2/lib/class.upload.php file and it is:

Code: Select all

$this->jpeg_quality             = 85;
This affects all images uploaded and used within K2 Content component. The built in K2 content/image slider also uses this.

It is ridiculous that the K2 extension developers do not have a setting for this within the components admin section, rather than having to dig through code.

Thanks to mobile internet and Google page ranking now taking in to account page speed, we are now looking at site optimizations again! After about a 10 year lapse. I think this is a good thing, but I don't think CMS & CMS extension developers have got around addressing these problems yet.

redgreen_1980
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Aug 15, 2008 1:51 pm

Re: Can anyone please let me know how to speed up my web sit

Post by redgreen_1980 » Wed Sep 05, 2012 11:29 am

I'vejust tried 3 attempts from London on IE8 and got vastly different results on your site every time using loads.in .

seaside man
Joomla! Guru
Joomla! Guru
Posts: 698
Joined: Thu May 08, 2008 2:55 pm
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by seaside man » Fri Sep 07, 2012 11:18 am

coruja wrote:This may be too late to help the orginal poster, but I have been looking to reduce the initial page load on a Joomla 2.5.1 site that used K2.

I found there is a setting in the code that determines the quality of the image re-size that K2 does for every image you upload through it. It creates multiple versions of the image suffixed with _S,_L,_XL &etc, resizes them using a deafult quality setting of 85%, and caches them. It is these cached images that are then re-used across the site. Not the original uploaded file.

This can bloat an original optimized file by about 50%+, even though the newly K2 re-sized image dimensions are EXACTLY the same as the dimensions of the file you uploaded!

The value is located in the <site root>/administrator/components/com_k2/lib/class.upload.php file and it is:

Code: Select all

$this->jpeg_quality             = 85;
This affects all images uploaded and used within K2 Content component. The built in K2 content/image slider also uses this.

It is ridiculous that the K2 extension developers do not have a setting for this within the components admin section, rather than having to dig through code.

Thanks to mobile internet and Google page ranking now taking in to account page speed, we are now looking at site optimizations again! After about a 10 year lapse. I think this is a good thing, but I don't think CMS & CMS extension developers have got around addressing these problems yet.
thanks for the info. how can we deal with this problem, you have said what the problem is but how do we find a solution if this is causing sites to be slow
In2town Magazine is a popular magazine covering celebrity gossip, travel news, lifestyle news, gadget news and so much more. visit http://www.in2town.co.uk

corsetsqueen
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 27, 2012 5:41 am
Location: USA
Contact:

Re: Can anyone please let me know how to speed up my web sit

Post by corsetsqueen » Thu Sep 27, 2012 5:49 am

seaside man wrote:hi, i have been struggling for a year now with the speed of my website http://www.in2town.co.uk this site tells me my speed is 4.55 sconds http://tools.pingdom.com/fpt/#!/lldpyri ... town.co.uk while http://gtmetrix.com/reports/www.in2town.co.uk/0s9s92do tells me 2.56 seconds. Sometimes the speed is a lot higher than this.

My hosting company are telling me i need to make my dedicated server and want to charge me £160 per month for a bigger dedicated server but i do not have that each month. they claim it will speed up my site but they said this when they wanted me to have a dedicated server and it did not make any difference.
Please don't use more java script.



I am wanting someone to come a long and really help me solve the problems i am having and help me to get the site faster. i am finding that when you load the main home page it is slow and seems when you are going from section to section like from the home page to the travel section, it is even slower.

I would be very grateful if someone could come along and advise me on what i need to do to speed up the site as i am losing visitors because of the slowness of my site

any help would be great

petrosal
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Sat May 11, 2013 12:46 pm

Re: Can anyone please let me know how to speed up my web sit

Post by petrosal » Sun Jun 09, 2013 8:26 am

I have website priprava.vyroba-nabytku.eu and it uses joomla 1.5 whit virtuemart. I have problem whit speed... the website loads very slow something about 12sec.

Does someone know what I have to do for speed up my website?


Locked

Return to “Performance - Joomla! 1.5”