Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Forward/Point domain in VestaCP

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
magzen
Posts: 47
Joined: Sat Sep 05, 2015 6:16 pm

Forward/Point domain in VestaCP
  • Quote

Post by magzen » Wed Nov 11, 2015 4:46 pm

Hello,

Does anyone know how i can forward a domain to another in VestaCP?

For example i have 2 domains example2.com ---> example.com
Top

abad
Posts: 36
Joined: Tue Jul 14, 2015 11:35 am

Re: Forward/Point domain in VestaCP
  • Quote

Post by abad » Wed Nov 11, 2015 5:10 pm

Depends what you want to achieve.

Add domain alias or make htaccess redirect (or any other option).
Top

magzen
Posts: 47
Joined: Sat Sep 05, 2015 6:16 pm

Re: Forward/Point domain in VestaCP
  • Quote

Post by magzen » Sat Nov 14, 2015 1:52 am

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]
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password