Page 1 of 1

How can i disable or change the admin login page

PostPosted: 26 Jun 2015, 18:09
by mhmdup
Dear
There is two login url

The admin or anyone can login from :
http://re-free.monoray.net/login
Or
http://re-free.monoray.net/admin

For security reason to protect from nosy visitors , when they do many trying to login in the admin panel
How can i rename or disable this link or page of ( admin) login
http://re-free.monoray.net/admin

This login link will be enough :
http://re-free.monoray.net/login

Regards

Re: How can i disable or change the admin login page

PostPosted: 29 Jun 2015, 09:35
by Xpycm
Hello.

Pages 'login' and 'admin' refer to the same controller and action SiteContoroller -> actionLogin

The protected\components\CustomUrlManager.php file:
Code: Select all
'/login' => 'site/login',
'/admin' => 'site/login',
'/administrator' => 'site/login'



Read more: http://www.yiiframework.com/doc/api/1.1/CUrlManager