How can i disable or change the admin login page

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

How can i disable or change the admin login page

Postby mhmdup » 26 Jun 2015, 18:09

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
mhmdup
Passer
 
Posts: 27
Joined: 27 May 2015, 01:25
Reputation point: 0

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

Postby Xpycm » 29 Jun 2015, 09:35

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
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 26 guests

cron