Plesk – move aliases to different domain

If you have read my article Plesk – get information about aliases you already know how to determine the aliases in the system.

To get a list of configured domains, you can use the following query after connecting to the Plesk database via key:

This will give you something like that:

What you nee is the id of the parent page that the aliases should be associated with. Now you can simply use the following SQL update query to change the alias association (dom_id have to be the id of the chosen main domain):

How you get the IDs to change it described in Plesk – get information about aliases. If you want to delete a alias, have a look at this blogpost: Plesk – remove alias via console

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.