T
T
Tsarev Vadim2021-06-08 15:14:15
Apache HTTP Server
Tsarev Vadim, 2021-06-08 15:14:15

How to hide the url request in /admin in apache2, /my came off on request to /admin?

How to hide the url request to /admin in apache2 so that the admin panel opens /my without moving the /admin directory,
ideally /admin redirects to /test.html and the admin panel opens by /my.
How through the site config or through .htaccess , /admin/.htaccess ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Carlyndow Marlifi, 2021-06-08
@zava75

in plug (.htaccess)

RewriteEngine On
RewriteRule ^admin/?$ /test.html [L,QSA]
RewriteRule ^my/?$ /здесь_путь_к_файлу_админки.php [L,QSA]

T
Tsarev Vadim, 2021-06-08
@zava75

Here is how to set up protection for what I was looking for even better https://www.ionos.co.uk/digitalguide/hosting/blogs...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question