Forward/Point domain in VestaCP
Forward/Point domain in VestaCP
Hello,
Does anyone know how i can forward a domain to another in VestaCP?
For example i have 2 domains example2.com ---> example.com
Does anyone know how i can forward a domain to another in VestaCP?
For example i have 2 domains example2.com ---> example.com
Re: Forward/Point domain in VestaCP
Depends what you want to achieve.
Add domain alias or make htaccess redirect (or any other option).
Add domain alias or make htaccess redirect (or any other option).
Re: Forward/Point domain in VestaCP
abad wrote:Depends what you want to achieve.
Add domain alias or make htaccess redirect (or any other option).
I fixed it using htaccess redirect thanks for the tip
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]