30 April 2013
Comments: Comments Off on Change Joomla Administrator folder name

Change Joomla Administrator folder name

This hack works without modifying any joomla code. First of all create a folder name of your choice for e.g myhiddenadmin in the Joomla root directory and create a index.php file in it with below code

$joomla_admin_cookie_code="658971532527";   // some random numbers
header("Location: /administrator/index.php");

Now go to Joomla administrator directory and add the below code in .htaccess file. Create the .htaccess file if it doesn’t exists.

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/administrator
RewriteCond %{HTTP_COOKIE} !JoomlaAdministratorSession=658971532527
RewriteRule .* - [L,F]

Now to access Joomla administrator area you must first have to browse http://yourdomain.com/myhiddenadmin/index.php first. It will set the JoomlaAdministratorSession cookie and then only the administrator area will be accessible.

Comments are closed.