How to change Plesk redirect URL


2016-12-18 06:54:14 UTC


2017-08-08 13:16:39 UTC


Was this article helpful?

Have more questions?

Submit a request

How to change Plesk redirect URL

Applicable to:

  • Plesk 12.5 for Linux


How to redirect customers to something other than the hostname for Plesk URL. is the server's hostname, is hosted on

Going to will redirect to

How to redirect to a different domain without changing the server's internal hostname?


Such behavior is not supported by Plesk, however a workaround is available:

  1. Create a backup of /etc/sw-cp-server/config file:

    # cp -p /etc/sw-cp-server/config{,.back}
  2. Made sure that name is resolved to the server's IP address.

  3. Update the file in the following way:

    # grep error_page /etc/sw-cp-server/config
    # error_page 497 https://$hostname:$server_port$request_uri;
    error_page 497$server_port$request_uri;
  4. Restart sw-cp-server service:

    # service sw-cp-server restart

Please note:

  1. This change can be overwritten by Plesk microupdates and Plesk upgrade.
  2. Perform it at your own risk and verify this solution on a test environment.
Have more questions? Submit a request


Please sign in to leave a comment.