Skip to main content

How to make a subdomain folder load as primary public html folder

Comments

3 comments

  • smeko
    how can i transfer a website from a subdomain to main domain of the same cpanel account ? Please help Silvi
    0
  • cPanelLauren
    The files for the subdomain site just would need to be moved to the document root of the main domain. You'd also need to change the URL in Wordpress to reflect the location.
    0
  • smeko
    The files for the subdomain site just would need to be moved to the document root of the main domain. You'd also need to change the URL in Wordpress to reflect the location.

    Hi, I resolved the problem this way: 1-I uploaded wp content folder from subdomain folder to public html of primary domain. 2- I updated wp-config with those records define('WP_HOME','http://mysite.com'); define('WP_SITEURL','Website Hosting - Mysite.com' Also i changed name and password of database at wp config. 3- I installed velvet blues plugin and changed urls to wordpress as this: Select Tools > Update URLs from the WordPress sidebar. Enter your old (subdomain) and new (root domain) URLs and in Step 2, check all options except Update All GUIDs. Now everything is working fine. Problem resolved ?
    0

Please sign in to leave a comment.