Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How To Speed Up Website .htaccess Code, code for .htaccess to rank better in google and Speed Up your Website
Web Design Seo
post Sep 25 2010, 09:39 AM
Post #1


Web Design Seo
****

Group: Root Admin
Posts: 4,161
Joined: 29-April 09
From: Sofia
Member No.: 1



Google love fast sites, in very hard niches your site speed is very important!

How to speed up my site? How to rank better in google?

Here is my How to speed up your website code for .htaccess. This will help you to speed up every dynamic site or static site, but this is needed in most cases for dynamic sites like joomla or other cms. Static sites load faster than dynamic.

I speak bad english and excuse me if I am not able to explain you better how its work smile.gif

This code use server side cache and gzip - used are apache modules mod_expires and mod_deflate.

Enter this bottom in your .htaccess:

Код
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

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



First part of code gzip .css and .js files. Your page will be smaller in kb and load faster.

Part two of code say to server that cache icons, images, css, flv, flash files and javascripts for certain amount of seconds. This type of files are loaded only first time - on first page in your site that user open, every next page will load faster.

And with this code your site will be ranked better in google - google love fast websites!

If you use Joomla: Htaccess Code To Speed Up Joomla
Enjoy wink.gif


--------------------
Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Pinned: Htaccess Code To Speed Up Joomla
example code for Htaccess for Joomla, Wordpress and other CMS
7 Web Design Seo 22,099 17th November 2018 - 11:47 AM
Last post by: Web Design Seo
No New Posts How To Block Bad Bots On My Website .htaccess Code
code for .htaccess
2 Web Design Seo 7,895 17th October 2018 - 06:55 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Check Aged Domain Names Quality
old domain for sale - check quality first!
3 Web Design Seo 19,401 10th September 2018 - 06:22 AM
Last post by: Web Design Seo
No New Posts How To Boost Onpage Seo Of My Website
fast and power way to find the right keywords and to rank it quickly
0 Web Design Seo 10,685 16th January 2017 - 01:47 PM
Last post by: Web Design Seo
No New Posts How To Limit Number Of Items In Rss Feed With Aggregator
yahoo pipes guide and example code
1 Web Design Seo 19,759 7th September 2015 - 10:48 AM
Last post by: Web Design Seo
No New Posts Pinned: How To Use Majestic For Free
Majestic.com for free, how-to guide
0 Web Design Seo 6,409 11th March 2015 - 02:59 PM
Last post by: Web Design Seo
No New Posts Pinned: How To Protect From Negative Seo
How to fight with Negative SEO campaigns, Short Guide
1 Web Design Seo 9,591 26th September 2014 - 01:31 PM
Last post by: Web Design Seo
No New Posts Pinned: How To Link After Google Penguin
post penguin link building
2 Web Design Seo 16,949 25th July 2014 - 10:21 AM
Last post by: Web Design Seo
No New Posts How Do I Know If Mbstring Installed?
Requirements of Post by Email
2 April Pastis 5,258 5th May 2014 - 03:30 PM
Last post by: April Pastis
No new Pinned: How To Install Ioncube Loader
If Ioncube Loader Is Not Installed In Your Hosting
5 Web Design Seo 15,257 24th April 2014 - 10:47 AM
Last post by: Web Design Seo


 



RSS Lo-Fi Version Time is now: 22nd October 2019 - 09:02 AM
Clicky Web Analytics