• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Adding a Subdomain to a domain that only has Redirects and Alias

Team-Support

New Pleskian
Hey there, I have a question.

One of our customers needs a new subdomain. However, he currently only has a redirect and 2 aliases for said redirect. If I click on "Create Subdomain" I only get an error message. Is there a way to add a subdomain for the current redirect or do I have to change that domain into a "proper" domain first? Also, if I do change it to a proper domain to create a subdomain - can I even change the main domain back to a redirect if a subdomain exists?
 
As you've noticed it's not possible to add a sub domain to a domain with hosting type "Forward".

There are two workaround options I can think of. First workaround would be to change the hosting type to "Hosting" and create a .htaccess file and use the file to configure the forward. This will allow you to add the sub domain. (See example for code you can use for forwarding in your .htaccess file on this link: How do I redirect my site using a .htaccess file? | Media Temple Community)

Second workaround option would be to just add the sub domain as separate (new) domain in Plesk by clicking the "Add Domain button".
Schermafbeelding 2022-02-11 om 20.08.08.png
Works fine for sub domains two. You'll manually have to add a DNS record for the subdomain to the DNS of your main domain.
 
Back
Top