• I have a WordPress installation on a DirectAdmin/Installatron host. The current site is working fine and is located here:

    https://www.domain.com/

    I want to move the WordPress installation here:

    https://blog.domain.com/

    In order to keep everything working with the management tools, I used DirectAdmin/Installatron to install another copy of WordPress for the subdomain. It works fine, but obviously is stock.

    So I set about backing up and restoring my database via phpmyadmin. After doing so, the new WordPress installation is still empty, except for the default content. Shouldn’t I see my content after importing the mysql export for the database?

    I even went into phpmyadmin and dropped all tables in the database and re-imported again. Still nothing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • And are you sure that the wp-config file of the new (subdomain) install is pointing to the right DB?

    Actually, it was a waste of time messing with the database export/import. You could have just point to new install’s config file to the old database AND (this is the most important) change the “home” and “site_url” values in the wp_options to reflect the new location. That should do it.

    Thanks for this. I’ve been thinking about taking my blog from a folder to a subdomain one day. I’m trying to sort what the benefits exactly are, but if there are any, then I’ll remember this thread.

    Thread Starter 843698

    The only reason I wanted to do the export/import was to keep Installatron’s list of known applications up to date. Otherwise if I decide to remove the original install via Installatron, then I loose the database for the subdomain since it was pointing to the old database.

    I’ve double checked and confirmed that the wp-config.php in the subdomain directory is pointing to the proper database that I imported the DB export to.

    Not sure what’s going on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Moving site to subdomain’ is closed to new replies.