• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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