Thursday, April 18, 2013

.htaccess File to Additionally Secure Your Joomla




You should make the following changes to the .htaccess file in the Joomla directory:
  • First, If you don't have a .htaccess file in your Joomla folder, you should rename the htaccess.txt file that comes with your Joomla installation package to .htaccess. To do this, you can use the File Manager tool in your cPanel. In addition, doing this will allow you to enable the SEF functionality of your Joomla application. The rules in it will block the majority of well-known attacks against your website.
  • Make sure you are running your website on PHP 5.2 or newer. All SiteGround customers have their accounts running PHP 5.2 by default.
  • Block the access to all files except index.php and index2.php. Note, however, that you may have to allow the access to some additional files if your extensions require them. If certain parts of your website do not appear, you can check the files that they rely on. Then, you can add them to the access rules. Generally, if you add the following lines to your .htaccess file, everything should work just fine:
    <Files *.php>
    deny from all
    </Files>
    <Files ~ "(^index.php|^index2.php)$">
    allow from all
    </Files>

No comments:

Post a Comment