Answer the question
In order to leave comments, you need to log in
How to deny access to any Alias located in the server's shared configuration?
There are multiple VirtualHosts on the same server. Alias are set in the global server configuration. For example for phpMyAdmin or "Alias /temp /usr/share/docs". For most servers, this is normal.
But there is one VirtualHost stub in which the work of redirects is undesirable.
Using the RewriteEngine at the root of this stub:
RewriteEngine On
RewriteCond %{REQUEST_URI} !/index.txt$
RewriteRule $ /index.txt [L,R=301]
Answer the question
In order to leave comments, you need to log in
Add a redirect to phpmyadmin config
/etc/apace2/conf-enabled/phpmyadmin.conf
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.|)domain\.ru$ [NC]
RewriteRule ^/(.*)$ https://domain.ru/404.html/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question