Answer the question
In order to leave comments, you need to log in
How to force htaccess to transfer the user from any page to the main one?
It is necessary for users from any page, for example
site.com/login
site.com/id/14
site.com/user/23
to be redirected to site.com/ Tell me
how to do this?
I try
RewriteCond %{HTTP_HOST} ^site\.com
RewriteRule ^(.*)$ http://site.com/ [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question