Answer the question
In order to leave comments, you need to log in
How to show another page without redirect using .htaccess?
There is a domain test.ru and a subdomain my.test.ru
. When you open my.test.ru, you need to show the page test.ru/my
, but the URL remains my.test.ru
.
I'm trying to write in .htaccess, which is at the root of my.test.ru, like this:
RewriteEngine On
RewriteCond %{HTTP_HOST} my.test.ru
RewriteRule ^(.*)$ http://test.ru/my/ [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