L
L
Leonardo-lavanda2020-05-13 06:23:03
htaccess
Leonardo-lavanda, 2020-05-13 06:23:03

How to make a redirect from any pages to the main page except for the admin panel?

It is necessary to close user access to any pages except the main and admin panel, that is, the available addresses are only / and /bitirx/admin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-05-15
@shambler81

RewriteCond %{REQUEST_URI} !^(.*)/bitirx/admin 
RewriteRule ^(.*)$ %1/ [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question