• 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 Change main domain from website to redirection

CoyoteKG

Regular Pleskian
Hello,

I have one subscription for example domain.com with that website.
Now I want that domain to use like forwarder.
I can't find how to change from Hosting type from "Website hosting" to "Forwarding".

At the end, I will do that with .htaccess, but I'm wondered is it possible to change hosting type for existing domains?
I see that is possible for other domains, but for this "first" is not.
 
1. Put an .htaccess file into example.com and make redirection:

1.1 Create .htaccess file inside the domain's document root folder at Plesk > Domains > example.com > File Manager.

1.2 Edit content of the file making the redirection (e.g. to example2.com) manually:
Code:
# 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 at Plesk > Domains > example.com > Hosting settings and re-create new example.com as subdomain on the same document root.

Note: 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.

For more information: Unable to change hosting type of subscription.


If you have any further questions, let me know.
 
Back
Top