Jump to content

Photo
* * * * * 3 votes

Speedup SE without any prob


  • Please log in to reply
118 replies to this topic

#21 aliakbar

aliakbar

    Home Developer

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

Posted 05 July 2010 - 09:01 AM

@kofmzc : dont modify the date or something else

Click on this Posted Image for +1 Rep !

Posted Image


#22 sfix

sfix

    Level 2

  • Members
  • Level
  • 19 points
  • 46 posts

Posted 05 July 2010 - 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();
}


#23 Sandakelum

Sandakelum

    Red Team Sierra 2

  • Administrators
  • Level
  • 2,706 points
  • 4,606 posts
    • Gender:Male
    • Location:Sri Lanka
    • Software:SE 3.1x


Users Awards

Posted 05 July 2010 - 10:09 AM

Thanks, But please use CODE Snippet when posting Codes :sweating: Repped
Sandakelumâ„¢
Coldware Networks Netherland

#24 messyone

messyone

    Home Developer

  • Premium
  • Level
  • 90 points
  • 252 posts
    • Gender:Not Telling

Posted 05 July 2010 - 10:42 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();
}


Some users have problems with uploading photos and other files once this type of thing is done. Does this also effect them if they do as you have here?

#25 kofmzc

kofmzc

    Level 3

  • Members
  • Level
  • 25 points
  • 87 posts
    • Gender:Male
    • Location:Pakistan

Posted 05 July 2010 - 11:45 AM

@kofmzc : dont modify the date or something else



I tried this one also earlier but not working its gives 500 Internal server error. may be some problem with my hosting i guess. :angry:

#26 aliakbar

aliakbar

    Home Developer

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

Posted 05 July 2010 - 05:43 PM

@kofmzc : i don't know what happens . it will working fine

Click on this Posted Image for +1 Rep !

Posted Image


#27 Salman

Salman

    Red Team Sierra 1

  • Administrators
  • Level
  • 3,344 points
  • 6,256 posts
    • Gender:Male


Users Awards

Posted 05 July 2010 - 05:57 PM

yes may be hosting problem and wrong use of htaccess will also cause same problem....

Edited by Salman, 05 July 2010 - 05:57 PM.

click this if you want to +1rep my post Posted Image if you found its quality work

#28 sfix

sfix

    Level 2

  • Members
  • Level
  • 19 points
  • 46 posts

Posted 05 July 2010 - 07:41 PM

Thanks, But please use CODE Snippet when posting Codes :sweating: Repped


what do u mean bro ?

#29 Sandakelum

Sandakelum

    Red Team Sierra 2

  • Administrators
  • Level
  • 2,706 points
  • 4,606 posts
    • Gender:Male
    • Location:Sri Lanka
    • Software:SE 3.1x


Users Awards

Posted 05 July 2010 - 07:43 PM

Lol Code Snippet, Code ! :D
Like this Mark at Editor Toolbar Posted Image

My HTML Code Goes Here

Thank You...
Sandakelumâ„¢
Coldware Networks Netherland

#30 sfix

sfix

    Level 2

  • Members
  • Level
  • 19 points
  • 46 posts

Posted 06 July 2010 - 12:22 AM

AH ok ur welcome i like things go simple the important is the tutorial not its style :mad:




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.