• 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

Moving multiple domain aliases simultaneously from one domain to another

WouterM

New Pleskian
Hi there,

Is it possible to move multiple domain aliases (eg. 30 aliases) simultaneously from one main domain to another?

This way I can move a whole group of websites simultaneously from the main domain 'myplatform2.0.com' to 'myplatform2.1.com'. This could really smoothen the way we do platform updates, since it takes away the need to set the platform in maintenance mode while updating.

Thanks, kind regards, W Monkhorst
 
AFAIK we haven't such possibility.
But you can try to use following "dirty hack" on your own risk:

Just change dom_id for alias in database and then update properties:

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -i rename.gov
Name rename.gov
Domain ppu11-5.demo.pp.plesk.ru
Status enabled
Mail On
Web On
DNS On
Seo redirect On

[root@ppu11-5 ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

mysql> select * from domain_aliases;
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
| id | dom_id | dns_zone_id | status | name | displayName | dns | mail | web | tomcat | seoRedirect |
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
| 1 | 1 | 9 | 0 | rename.gov | rename.gov | true | true | true | false | true |
+----+--------+-------------+--------+------------+-------------+------+------+------+--------+-------------+
1 row in set (0.00 sec)

mysql> update domain_aliases set dom_id=6 where id=1;
Query OK, 1 row affected (0.09 sec)
Rows matched: 1 Changed: 1 Warnings: 0

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -u rename.gov
The domain alias rename.gov properties were successfully updated.2013-08-06T15:22:30+07:00 DEBUG (7) [util_exec]: dnsmng /usr/local/psa/admin/bin/dnsmng '--update' 'rename.gov' TRUE 0.04660

[root@ppu11-5 ~]# /usr/local/psa/bin/domalias -i rename.gov
Name rename.gov
Domain nik.com
Status enabled
Mail On
Web On
DNS On
Seo redirect On
[root@ppu11-5 ~]#
 
Back
Top