Page 1 of 1

[Solved] How to remove the redirection domain.com to domain-com.server.company.com ?

Posted: Thu May 12, 2016 4:44 pm
by Spheerys
I have a strange problem on few websites hosted by my vestacp server.

During the dev phase, the website was reached on domain-com.myserver.mycompany.com as temporary URL
The original domain.com was set up to use previous DNS server to reach the old website.

When the new website is OK, I'm changing the DNS for domain.com to use ns1.mycompany.com and ns2.mycompany.com
Generaly, it's working like a charm.

But on 2 websites, if I go on domain.com, I'm automaticaly redirected to domain-com.myserver.mycompany.com

And I don't understand how to remove this redirection on vestacp (because I think the issue is on vestacp side), and use http://www.domain.com as main URL

I hope I was clear enought !

Re: How to remove the redirection domain.com to domain-com.server.company.com ?

Posted: Fri May 13, 2016 12:00 pm
by mike08
Hi there,

How have you set up the redirection at the beginning?

Re: How to remove the redirection domain.com to domain-com.server.company.com ?

Posted: Sat May 14, 2016 10:11 am
by Spheerys
I didn't set any specific option neither before, nor after
Here my configuration for the user account :

Image

Here the web configuration for the domain :
Image

Re: How to remove the redirection domain.com to domain-com.server.company.com ?

Posted: Sun May 15, 2016 7:58 pm
by Spheerys
Maybe a clue.
I have 3 users on VestaCP :
- me, with 12 websites
- user1 with only one website : biotoucy.com
- user2 with only one other website

The problem occurs only with user1 and user2.
I don't have any issue with the alias domain with my user account

It's look like a bind issue, but I don't know how to debug it...

Re: How to remove the redirection domain.com to domain-com.server.company.com ?

Posted: Tue May 17, 2016 8:18 pm
by Spheerys
Ah ah ah ah.
The problem comes from the CMS (Wordpress in this case) which was installed from the URL domain-com.server.company.com !
This url was recorded in the database.
Change it from the CMS or phpmyadmin solved the problem !