.htaccess - Two websites, different domains in the same hosting

Asked

Viewed 105 times

1

Guys to with a question, I wonder if it is possible to redirect a domain to a subfolder of a hosting with a website without changing the browser URL via . htaccess.

Example: domain 1 - Accommodation 1 domain 2 - Hosting 1/domain 2

it is possible?

1 answer

0

If I understand correctly, yes, it is possible. You put the rules within site-available. Place an Alias to redirect to the second folder. Ex.:

https://www.example.com

https://www.example.com/blog

Browser other questions tagged

You are not signed in. Login or sign up in order to post.