A
A
Alexey Kuryanov2015-12-25 13:46:30
Apache HTTP Server
Alexey Kuryanov, 2015-12-25 13:46:30

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

1 answer(s)
O
OnYourLips, 2015-12-25
@OnYourLips

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 question

Ask a Question

731 491 924 answers to any question