M
M
Maxim Lesnikov2015-05-12 13:23:44
htaccess
Maxim Lesnikov, 2015-05-12 13:23:44

How to close the admin panel in UMI CMS?

Good afternoon. This seemed like a simple question.
It is necessary to hide the admin panel in UMI CMS (/admin)
Easy on the one hand. But on the other hand, I cannot find the place where it is stored on the hosting.
Who worked with the mind, please tell me how to do this. It is necessary to hide it, or at least change its path.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2015-05-15
@maximka_l

The correct way to deny access to /admin is through the web server settings, for example, edit .htaccess in the project root, add a rule:

RewriteEngine On
RewriteRule ^admin - [R=404,L]
####################### UMI_CMS_HTACCESS_BEGIN ###########################

After applying, all links starting with admin/ will return a 404 code (page not found).
Where the admin is located is no longer important, but if you are interested... The implementation of the admin in UMI.CMS is modular and its implementation is located in the folder of the corresponding module (classes/modules/*/__admin.php), it can be left in place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question