How to properly redirect one domain to another

Post Reply
User avatar
Team Member
Posts: 132
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 16 times
Been thanked: 3 times

Let's assume that your primary domain is and that you want to redirect another domain, to the primary domain

Steps you should take in order to achieve this:
Add to your myVesta Hosting Panel (if there is already a domain created then skip creating), then go into web/ folder of this domain and create a .htaccess file with content:

Code: Select all

RewriteEngine On
RewriteBase /
RewriteRule (.*)$1 [R=301]

Post Reply