We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Speed up your website with the perfect .htaccess file | Forum

tammy harris
tammy harris Nov 22 '15
yes i am use nignxcp  admin whm plugin
its dropped my ram usage by 30%
Pete
Pete Nov 24 '15
Has any one else noticed  how fast the oxwall site loads ?,this is because thy do not have loads of plugins , it must be a couple of plugins that or slowing our site down a hell of alot .Its not the oxwall script ,its some of the plugins that is the cause .If you use a crappie plugin it wont matter what code you put in your htaccess file ,it well still run slow 


The trouble is which plugins or the cause ?This is what we need to try and find out 

The Forum post is edited by Pete Nov 24 '15
Kяuncн Leader
Kяuncн Feb 19 '16
Seems ok to me...


tammy harris
tammy harris Feb 20 '16
Chat a smileys are bad 

The big problem is every plugin loads on every page even pages they have nothing to do with

Webster Molaudi
Webster Molaudi Jan 3 '17
Hi Guys,

Can someone make a plugin that helps wit this as not everyone is a coder...it would be nice to have or buy just a thought...A plugin that inserts this to your .htaccess file.
Stan Jensen
Stan Jensen Jul 4 '17
JUst so I understand..

I put this code below the stock code for the website htacess?


- - - ocopy and paste - - - 

 

# disable the server signature
ServerSignature Off

# Enable compression
<IfModule mod_deflate.c>
  <FilesMatch "\.(js|css|php|eot|ttf|otf|svg)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

# Control ETags which is thought that bring better performance
<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
FileETag None

<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary Accept-Encoding
  </FilesMatch>
</IfModule>

<IfModule mod_expires.c>

    # Enable expirations
    ExpiresActive On

    # Default directive
    ExpiresDefault "access plus 1 month"

    # My favicon
    ExpiresByType image/x-icon "access plus 1 year”

    # Images
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"

    # CSS
    ExpiresByType text/css "access 1 month”

    # Javascript
    ExpiresByType application/javascript "access plus 1 year"

</IfModule>


Stan Jensen
Stan Jensen Jul 4 '17
thanks
Pages: « 1 2