redirection any subdomain

djcart

Verified User
Joined
Jun 29, 2021
Messages
122
Hi! I'm using DA and LiteSpeed. How can I set up a redirection from any subdomain to the main domain? I'm interested in a redirection that works even when a specific subdomain hasn't been created in DirectAdmin. So, for example, if a customer enters xyz.domain.com, it will redirect them to domain.com.
 
Thank you for your response. Ultimately, I implemented one of these solutions. One drawback of them is the need for administrator intervention in the configuration. In the old DirectAdmin panel, there used to be a Wildcard option that set this up automatically from the user level. Has anything changed over the years?
 
Maybe you can still add wildcard subdomain to domain pointers from user level, instead of adding to custom-httpd.
I don't have posibility to check it now.
 
Back
Top