A subdomain redirect sends visitors to another website address. On Plesk for Linux, an Apache .htaccess rule can redirect requests while retaining website hosting and its HTTPS certificate.
Prepare the redirect
Confirm that the destination works and that the source subdomain points to this server. For visits to the source over HTTPS, its own valid certificate is still required before the redirect can be received.
Back up the subdomain’s existing .htaccess file and check for application or server redirects that could conflict.
Add an Apache redirect
- Open Websites & Domains, select the source subdomain and open File Manager.
- Open
.htaccessin that subdomain’s document root, or create it if absent. - Add the following rule before conflicting application rewrite rules. Replace the destination with your actual HTTPS address:
RewriteEngine On
RewriteRule ^(.*)$ https://www.example.com/$1 [R=302,L]- Save and test the subdomain’s home page and a page path. The rule preserves the path and existing query string.
- If the move is permanent and testing succeeds, change
R=302toR=301.
This method requires Apache to process .htaccess; it does not apply to nginx-only hosting or Windows IIS.
Using the Forwarding hosting type
Where available, Hosting Settings > Hosting type > Change also offers Forwarding. Back up the existing site and check the consequences before changing its hosting type. Choose standard forwarding and enter the intended destination URL.
Plesk’s documented Forwarding hosting type does not secure the source with HTTPS. Use the website-hosting method when the source must remain accessible over HTTPS. Avoid frame forwarding when a normal browser redirect is required.