• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Plesk wordpress domaine for web site only

f.i.SCIENCES

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
Version 18.0.55 Update #2
Hello community,

I have set up a WordPress site with a temporary domain name for it on Plesk. All works fine.
I have a CPanel server with the real domain name already set up for mail, web site and others.

Now I want to make my Plesk WordPress to serve as the web site.
Leaving the rest of it on the current CPanel server.
Can I do that and how?

Thank you.
 
This is possible with a transparent proxy forwarding. It will keep the temporary domain name on your Plesk server, but from cPanel it will open the websites under the domain that is hosted on the cPanel server. You'll need to add this to the .htaccess file on your cPanel domain document root:
Code:
RewriteRule ^(.*)$ https://<plesk-temporary-domain-name-on-plesk-server>/$1  [P,L]
and you also need to add these lines to the web server configuration of your cpanel server:
Code:
ProxyRequests On
SSLProxyEngine On
for http and https connections. For further details, please consult your cpanel server.

Personally, I believe it would be much more simple to migrate to Plesk, because if you host your website on Plesk anyway, why would you still need the other server.
 
I'd go with different approach. Clone your Wordpress website in Plesk (info here) for use with your actual domain name. Then change the DNS records of your domain needed for your website to point to your Plesk server. (Leaving the DNS records needed for mail to point to your cpanel server).
 
I'd go with different approach. Clone your Wordpress website in Plesk (info here) for use with your actual domain name. Then change the DNS records of your domain needed for your website to point to your Plesk server. (Leaving the DNS records needed for mail to point to your cpanel server).
OK, but why do I need to clone the website. Can I just change it's domain name?
 
This is possible with a transparent proxy forwarding. It will keep the temporary domain name on your Plesk server, but from cPanel it will open the websites under the domain that is hosted on the cPanel server. You'll need to add this to the .htaccess file on your cPanel domain document root:
Code:
RewriteRule ^(.*)$ https://<plesk-temporary-domain-name-on-plesk-server>/$1  [P,L]
and you also need to add these lines to the web server configuration of your cpanel server:
Code:
ProxyRequests On
SSLProxyEngine On
for http and https connections. For further details, please consult your cpanel server.

Personally, I believe it would be much more simple to migrate to Plesk, because if you host your website on Plesk anyway, why would you still need the other server.
I'm getting an error 500 doing this. Should those 3 lines go at the end of the .htaccess file?
 
Please check your error_log file why you get that error. As this configuration is not done on Plesk, I suggest you turn to cPanel support or their forum for further information.
 
Hello community,

I have set up a WordPress site with a temporary domain name for it on Plesk. All works fine.
I have a CPanel server with the real domain name already set up for mail, web site and others.

Now I want to make my Plesk WordPress to serve as the web site.
Leaving the rest of it on the current CPanel server.
Can I do that and how?

Thank you.
  1. Add domain in Plesk: Add your real domain in Plesk and update DNS to point to Plesk server IP.
  2. Install WordPress: Install WordPress for your domain in Plesk.
  3. Configure WordPress URLs: Update WordPress Address (URL) and Site Address (URL) to your real domain in WordPress settings.
  4. Optional: Install SSL: Install an SSL certificate (Let's Encrypt) for your domain in Plesk and ensure WordPress uses HTTPS.
  5. Test: Test your website on the real domain. Ensure email and other services on cPanel remain unaffected.
 
Back
Top