Optimize your server with caching and compression. Ideal settings for websites using WordPress, Joomla or Magento.

These are pretty standard settings, simply lines entered in your site’s root .htaccess file.  Be careful modifying your .htaccess file, if you don’t know what you’re doing a rogue semi-colon (;) could easily take your site down and throw that dreaded “500 Server Error” — that’s not the kind of error you want your website to get, but even though a 500 error looks bad, it’s amazing how you can bring a site down so easily with a simple character or a single line of code in many types of scripts.

An “.htaccess” file isn’t really a script, though it can contain behaviors and conditions, it’s more a set of directives that let the server know what you want it to do and how it can act.  Since it’s so powerful and does so much, with great power comes even greater responsibility. Keep in mind that you should be testing these directives on a “dev” server (development server) and not your live site!  Also these lines are generally accepted, but your flavor of Linux might require a different approach or modifying the settings and commands to work properly on your particular server.

Aaron Belchamber has written 247 articles

Leave a Reply

Your email address will not be published. Required fields are marked *