Unable to change hosting type of subscription.

Created:

2016-11-16 13:02:39 UTC

Modified:

2017-06-26 13:20:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to change hosting type of subscription.

Applicable to:

  • Plesk for Linux
  • Plesk 12.5 for Windows

Symptoms

  1. Unable to change hosting type of the main domain of subscription.
  2. The option Change is not available under hosting settings of the subscription.
  3. After changing Hosting Type from Hosting to Forward the whole domain webspace was deleted

Cause

In general it is not allowed to change hosting type of the main domain of a subscription in case there are additional domains or subdomains within the subscription.

For test purposes you can run the command below:

# /usr/local/psa/bin/domain -u domain.tld -hst_type std -target_url target_domain.tld -ip 10.10.10.10
Webspace contains sites, therefore, you cannot change hosting type or delete it.

Resolution

There are 2 possible workarounds:

1.put an .htaccess file into example.com and make redirection.

Create .htaccess file.

Edit the contents of the file making the redirection (e.g. to example2.com) manually:

# This allows you to redirect your entire website to any other domain
Redirect 301 / http://example2.com/

# This allows you to redirect your entire website to any other domain
Redirect 302 / http://example2.com/

# This allows you to redirect index.html to a specific subfolder
Redirect /index.html http://example2.com/newdirectory/

# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example2.com/newdirectory/newfile.html

2.Rename domain example.com into some arbitrary name and re-create new example.com as subdomain on the same document root. You will need to re-create mailboxes in new example.com and move mail into each new mailbox.

After that example.com can be configured as redirect without damaging webspace.

Have more questions? Submit a request
Please sign in to leave a comment.