Reese Knowledgebase

www as a subdomain

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 111
by: Reese K.
Posted: 27 Jun, 2013
Last updated: 27 Jun, 2013
Views: 844

While performing VPS migration, we got a scenario where 'website.com' shows one content and 'www.website.com' shows another content.

When we migrated this domain to new server, 'www' sub domain creation failed,and 'www.website.com' is created as server alias.

To fix this issue:

  1. Logged into new VPS after migration is done.
  2. Select domain for which subdomain 'www' has failed.
  3. Go to DNS Settings and remove www.website.com  record.
  4. Execute below command
    1. /usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=website.com
  5. Create www subdomain using command
  6. /usr/local/psa/bin/subdomain --create www -domain website.com -www-root /subdomains/www/httpdocs
  7. Again 'www.website.com' A record will be created in DNS Settings. Need to remove A record of 'www.website.com'.
  8. Execute command /usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=website.com
  9. Enable php support for 'www' subdomain
  10. Copy contents of 'www' subdomain from source vps into new VPS.


After these steps, 'website.com' and 'www.website.com' shows two different contents.

This article was:   Helpful | Not Helpful
Prev   Next
Obtain Plesk User Account Information     Plesk Control Panel only displays in Standard Mode

RSS