Solved Subdomain keeps being preset with www in front of

cDGo

Verified User
Joined
Sep 21, 2012
Messages
110
I copied a running hosting package from a live server to a test server.
On the test server I changed the domain name from domain.com to test.domain.com with the DA "Change a Domain Name" function.
So I did not used the subdomain function, as the domain.com will reside on the live server.
I changed the IP for the subdomain in the external DNS provider.
And the test.domain.com pings to the right IP address on the test server.
So far so good.

But when I open the test.domain.com url it keeps being forwarden to https://www.test.domain.com
I remove the htaccess file to prevent interferring.
I opened a basic html file for testing, but still the server cannot be found, and is refered to https://www.test.domain.com.

What obvious error did I create that keeps me busy? ;)
And how to get this working.
 
Check the option in domain options in DA itself to redirect to www or to domain or none. It might be set to www.
 
Hi Richard,
I think you mean:
/usr/local/directadmin/data/users/USER/domains/test.domain.com/test.domain.com.conf

There is a setting like this:
force_redirect=www

Do searching with that leads to:
User Level -> Domain Setup -> domain.com -> Force Redirect

And yes, that solved the problem.

Thank you (again) for your advice!
 
Hi Richard,
I think you mean:
Probably it's present in that file but I ment what I said so in DA itself. I'm not a favorite of changing files themselve if things can be changed via the panel.

Do searching with that leads to:
User Level -> Domain Setup -> domain.com -> Force Redirect
Yep, that's what I ment with the domain options, domain setup. :)

Glad to see you fixed it.
You're welcome. ;)
 
Back
Top