Have you subscribe article via RSS Feed? Subscribe Now..

Friday, April 17, 2009

Easy way to change Login Adminitrator

If you want to change joomla adminitrator login easily without changing any original code. This I got from other joomla forum, and for all my friend who need, you can try like sample below :

1. Create new folder name (example : /myadmin)
2. In "myadmin" folder, create index.php file with following code :

<?php
$admin_cookie_code="1234567890";
setcookie("JoomlaAdminSession",$admin_cookie_code,0,"/");
header("Location: /administrator/index.php");
?>


3. In .htaccess enter this code :
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/administrator
RewriteCond %{HTTP_COOKIE} !JoomlaAdminSession=1234567890
RewriteRule .* - [L,F]


With this tricks user will found error page if want to access : http://myweb.com/administrator

For User Admin, address of administrator has been changed to : http://myweb.com/myadmin/

Note : change : "1234567890" with new number depend with your choice, and the number must same with number in index.php file which already created in .htaccess.


Have a nice try....

2 comments:

ExiOST Blog said...

Yes, I'm already use it :D

ExiOST said...

Are you sure??

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment