Control all subdomains with htaccess instead of directadmin?

PaulMD

Verified User
Joined
Sep 18, 2016
Messages
16
I haven installed an SSL certificate for the main domain of my server with directadmin. Now I try to get the forwards working good. But there are too many files from where redirects are working. I found:
- .htaccess
- httpd-includes.conf
- httpd-alias.conf

But there are more. Subdomains I make in directadmin are also forwarded, but where is that file in CentOs?

Is it possible to arrange all redirects including the subdomains in one file with an .htaccess?
How do I do it?

I want
http://mydomain.com/* and http://www.mydomain.com/* goto https://mydomain.com
http://subdomain.mydomain.com/* goto https://subdomain.mydomain.com
http://subdomain2.mydomain.com/* goto https://subdomain2.mydomain.com
http://subdomain3.mydomain.com/* goto https://subdomain3.mydomain.com
 
Back
Top