• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • 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.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Question Change main domain from website to redirection

kojot

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