Page 1 of 1
Forward/Point domain in VestaCP
Posted: Wed Nov 11, 2015 4:46 pm
by magzen
Hello,
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
Posted: Wed Nov 11, 2015 5:10 pm
by abad
Depends what you want to achieve.
Add domain alias or make htaccess redirect (or any other option).
Re: Forward/Point domain in VestaCP
Posted: Sat Nov 14, 2015 1:52 am
by magzen
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]