Change admin access URL

1

Galera, is the following: I create several sites and systems, and most of them exist in the administrative area. I do until then in the basics of being "urldosite.com.br/ admin ".

Now, for the sake of security too, I want to start exchanging those hits. Example, instead of being " admin " be " admin0978 ", but in each system the numbers will be different.

How do I do this in CakePHP 3? How to change admin access URLs in Cakephp 3? Just so far I need to change all namespace admin controllers.

    
asked by anonymous 05.10.2016 / 17:06

1 answer

1

In your Project / config / routes.php file

...
Router::scope('/', function ($routes) {
    ...
    $routes->connect('/admin0978', ['plugin' => null, 'controller' => 'admin', 'action' => 'index']);
    ...
});
...
    
24.10.2016 / 20:24