For the site, everything works, I need for the admin panel.

If on the site.ru/admin page site.ru/admin enter the login or password incorrectly, you will be redirected to the site.ru/admin/index.php?route=common/login page.

How can this be removed using .htaccess or maybe it can be fixed as it is in the code? It is necessary that when forwarding was on site.ru/admin .

    1 answer 1

    Ideally, you need to configure the CNC for the admin panel, but I have never come across this, as an option I can suggest to add in the controller

     /admin/controller/common/login.php 

    after line

     $data['action'] = $this->url->link('common/login', '', 'SSL'); 

    following

     $data['action'] = str_replace("index.php?route=common/login", "", $data['action']); 

    The solution is of course a crutch, but it can help if it is only necessary for the form.

    • Yes, just for the form, thank you - Abmin