Answer the question
In order to leave comments, you need to log in
How to correctly redirect domains to specific folders using .htaccess?
Hello!
Please tell me how to set up .htaccess correctly
. There are 3 domains:
site1.ru,
site2.ru,
site3.ru
site files are in the same root directory public_html, for each domain there is a folder public_html/site1,
public_html/site2,
public_html/site3,
how to configure .htaccess so that each domain is redirected to the appropriate folder?
Answer the question
In order to leave comments, you need to log in
You need to create virtual hosts with document roots pointing to these folders.
This is not done through .htaccess.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question