Jump to content

Photo
* * * * * 3 votes

Speedup SE without any prob


  • Please log in to reply
118 replies to this topic

#111 HDMzOne

HDMzOne

    Level 1

  • Members
  • Level
  • 5 points
  • 2 posts

Posted 25 December 2011 - 05:01 PM

Do not change anything in the code


I also have internal error 500 when update htacess but change when header exipres date and ....it's work like charm like you say :)


rep delivered and thanx for this code ,my site was slow like snail but now....exelent

#112 naji

naji

    Level 1

  • Members
  • Level
  • 6 points
  • 22 posts
    • Gender:Not Telling

Posted 25 December 2011 - 09:22 PM

Please help me
I Read many CODES in this Topic
What is the Best and Better CODE
Please Answer me .. My web site is very Slow: www.faadfadah.com
www.faadfadah.com

#113 naji

naji

    Level 1

  • Members
  • Level
  • 6 points
  • 22 posts
    • Gender:Not Telling

Posted 26 December 2011 - 12:22 AM

Use this one !
.
Working 100%


<FilesMatch "(?i)^.*\.(ico|css|jpg|jpeg|png|gif|js|flv)$">
Header unset ETag
FileETag None
Header unset Last-Modified
Header set Expires "Fri, 21 Dec 2012 00:00:00 GMT"
Header set Cache-Control "public, no-transform"
</FilesMatch>

AddOutputFilterByType DEFLATE  text/js text/javascript text/css text/html text/plain application/x-javascript   text/xml image/gif image/png image/jpg


It will also include image/gif image/png image/jpg





THANK YOU VERY VERY VERY MUCH. THIS IS FANTASTIC
www.faadfadah.com

#114 naji

naji

    Level 1

  • Members
  • Level
  • 6 points
  • 22 posts
    • Gender:Not Telling

Posted 27 December 2011 - 10:06 AM

better way to Gzip add the followin code into .htaccess :

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)\.(\d+)(_m_\d+)?\.([^\.]+)$ $1.$4 [L,QSA]
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
</IfModule>


then go to header.php after <?php add the following code :

if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
ob_start("ob_gzhandler");
}
else {
ob_start();
}



hi man ... I cant find this file >> header.php .. Where can I find it
www.faadfadah.com

#115 Anubis

Anubis

    Level 4

  • Members
  • Level
  • 109 points
  • 129 posts
    • Gender:Male
    • Location:United States


Users Awards

Posted 02 January 2012 - 09:41 PM

Check root directory if you dont have header.php you have issues.....
Posted Image

#116 aliakbar

aliakbar

    Home Developer

  • Premium
  • Level
  • 202 points
  • 209 posts
    • Gender:Male
    • Location:United States
    • Software:SE 3.1x

Posted 13 February 2012 - 12:37 PM

Check root directory if you dont have header.php you have issues.....


hmmmm <_<

Click on this Posted Image for +1 Rep !

Posted Image


#117 Nasjas

Nasjas

    Level 2

  • Members
  • Level
  • 13 points
  • 39 posts
    • Gender:Male
    • Location:Sri Lanka

Posted 07 March 2012 - 10:20 AM

Whis is the BEST one among the above? Please suggest me
tahnks
Naseer
Web Developer
Ecoz Labs
Sri Lanka

#118 aliakbar

aliakbar

    Home Developer

  • Premium
  • Level
  • 202 points
  • 209 posts
    • Gender:Male
    • Location:United States
    • Software:SE 3.1x

Posted 30 October 2013 - 03:34 PM

Whis is the BEST one among the above? Please suggest me
tahnks


The first one, on the first page. use that.

and i am replying on this Topic after couple of year. i had great memories on this forum :)

miss you all friends !

Click on this Posted Image for +1 Rep !

Posted Image


#119 ohmy

ohmy

    Banned

  • Banned
  • Level
  • 0 points
  • 3 posts
    • Gender:Not Telling
    • Software:SE 4.8.x

Posted 19 January 2015 - 09:02 PM

not working on v3.20






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.