• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Quick help with subdomain please

M

manarak

Guest
Hello

mydomain.com points to httpdocs/

I got a directory httpdocs/en

I want en.mydomain.com to point to httpdocs/en/

How can I do that quick&dirty?
What file should I modify?
 
I do that like this. Create the subdomain "en" as full domain and create a vhost.conf-file. In that you can change the DocumentRoot to en, or Rewrite just the home to start in en, like this:

RewriteEngine On
RewriteRule ^/$ /en/

or to redirect to the other domain:

RewriteEngine On
RewriteRule ^/$ http://mydomain.com/en/

if you want to share the sources.
 
Thank you, but I have a 30-domains licence and I din't know that subdomains would be counted as a full domain...

I just want to do the change in DNS or anywhere, not to create a full domain for that.
 
Apache RewriteRules should also work for a subdomain. I don't really think that subdomains are counted as mains, if they are configured as a sub. I just recommended that, because then you can configure more freely. So, in your situation i would just look, if the RewriteRules are working at all. If yes, we can manage your problem. ;)
 
Back
Top