• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Subdomains - redirect to www.domain.com when inexistent or else go to real folder

R

RicardoF

Guest
Dear sirs

Let me cut to the chase so I won't waste your time. I need to have a domain that accepts all subdomains associated with. For example, having the main domain "www.domain.com", I want/need that all xxxx.domain.com like redirect to www.domain.com. Therefor, all xxx.domain.com will read the index.html (for instance) on the www.domain.com.

The main issue, besides this, is to have "real" subdomains like realsubdomain.domain.com. When this subdomains are real, they should read from their own files (inside the subdomains folder), when not they should read from the www.domain.com (main site).

Could you give me an hint how to do this? I have found this tutorial but it regards other version, different from the one I have "http://kb.odin.com/en/2823" - I have Linux, version 9.5

Thank you very much for your concern and help

Ricardo
 
Mentioned KB article is for other Parallels product but not for Plesk.
But why you can't use domain aliases for your purpose?
 
IgorG,

thank you for your fast answer and support.

Indeed the mentioned kb article is for another product other than plesk, I just wrote it here to best show what I would like to acomplish.

Regarding the use of domain aliases, I don't think that will fit on this particular situation since my goal is to create subdomains for a main base domain that don't really exist.

For example, how does twitter acomplish this? They have millions on xxxx.twitter.com that I am sure they didn't create any alias nor subdomain manually.

Besides that, if a subdomain trully exists (test.domain.com) then it's folder should be read. Otherwise, any xxxx.domain.com should read from the www.domain.com folder.

What do you think?

Ricardo
 
Hello once more

Tried something similar but all subdomains were grabbed by the wildcard, even the ones that existed were behaving like they didn't.

From what I read, I really think this will pull the trigger! Let me give it a go and then I will report to you how it went.

Thanks a million for your help and patiente.

Ricardo
 
Ok, it's something similar that I need.

The main issue is using the kb you provided, I will have all non existent subdomains getting grabbed by the zzwikdcard subdomain but in fact I would need this behaviour on the main domain, the www.domain.com.

After that, according to the subdomain inserted by the user, the site would output the data of that subdomain.

What I think I could do with the kb you provided is having the site in the zzwildcard subdomain. This way all subdomains, if non existent, would hit the sitr files.
 
Back
Top