Security Verified
Browse Categories
 Affiliates
 Backup & Restore
 Billing & MyAccount FAQs
 Control Panels
 Customer Tools
 Databases
 Dedicated Servers
 DNS and Domain Registration
 Email
 Glossary
 Network
 News
 PCI Compliance
 Pre-sales FAQ
 Publishing Your Site
 Reseller Tips
 Search Engine Optimization
 Security Topics
 SSL and HTTPS
 Support: Getting Help
 Virtual Desktops
 Virtual Servers
 Website Design & Development
 Website Errors

DotNetNuke Hosting
SQL 2008 R2 / IIS 7.5 Hosting
WordPress Hosting
Forex Trader Hosting
Personal Desktop Hosting

Adding wildcard DNS record

Article ID: 917

 Back to Search

Question
  • I'm looking to configure my website so that anything.mydomain.com will land the visitor on my site (mydomain.com), i.e., bob.mydomain.com or trucks.mydomain.com.  How do I do this?
Answer
  • For Plesk users:
    • pending update...
  • For cPanel users:
    • Simply add a subdomain like you would any other subdomain in the cPanel interface, except make your subdomain * (as if to show on the screen: *.example.com), and leave the document root field empty... cpanel will automatically populate it with your domain's website root, which will look like this, after you save the change:
Subdomains Root Domain Document Root Redirection Actions
* .mydomain.com /public_html not redirected Manage Redirection Remove
othersubdomain .mydomain.com /public_html/othersubdomain not redirected Manage Redirection Remove

Note that our example here also shows another subdomain (called "othersubdomain"), which is configured to point to a subfolder... so with this configuration:

  • anything.mydomain.com will serve the same content as mydomain.com and www.mydomain.com, the files in /public_html
  • othersubdomain.mydomain.com will serve the content that's stored in /public_html/othersubdomain
 
Downloads Associated With This Article
No downloads are currently associated with this article.

© 2001 - 2012 3Essentials Inc.
Terms Of Service | Privacy Policy | Copyright Policy | Affiliates