WordPress.org

Ready to get started?Download WordPress

Forums

Same site on a domain and subdomain help please (4 posts)

  1. averagejoe76
    Member
    Posted 2 years ago #

    So I have a subdomain that I have been developing on in preparation for launching a website. My intentions were to use the subdomain for testing and developing, as to not interfere with what the public should see on the main domain. I am ready to launch the site. How and what do I need to do in order to to keep wordpress on the subdomain for future development and still have a version show on the main domain that will not change while I make tweaks on the subdomain.

    I attempted to copy all the wordpress files from the subdomain folder to the main domain folder and I noticed while the ftp was copying over the files that not all of them are able to be copied. I have been reading blogs, and forums all night but I am not understanding most of the terminology. I fear that wordpress is associated with the subdomain so it won't allow for it to work on the main domain. Any help would be appreciated.

    Thank you

  2. Felix J
    Member
    Posted 2 years ago #

    Ok, do like this. Make a new installation of wordpress on you main domain with a new database. Then you go to the subdomain and within admin click on Tools > Export and choose All Content and then "Download export file".

    Then you can import that xml file created to your new WordPress installation.

  3. Felix J
    Member
    Posted 2 years ago #

    Information on how to import the xml to a wordpress installation can be found within the xml file itself, but here it is

    <!-- To import this information into a WordPress site follow these steps: -->
    <!-- 1. Log in to that site as an administrator. -->
    <!-- 2. Go to Tools: Import in the WordPress admin panel. -->
    <!-- 3. Install the "WordPress" importer from the list. -->
    <!-- 4. Activate & Run Importer. -->
    <!-- 5. Upload this file using the form provided on that page. -->
    <!-- 6. You will first be asked to map the authors in this export file to users -->
    <!-- on the site. For each author, you may choose to map to an -->
    <!-- existing user on the site or to create a new user. -->
    <!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
    <!-- contained in this file into your site. -->

  4. revium
    Member
    Posted 2 years ago #

    If you are keeping a copy of the same site on the subdomain I would also either password protect the subdomain or set it to 'noindex nofollow' so the search engines do not find and index it and see it as duplicate content.

    You can quickly set it to no index by gong to Settings > Privacy and choosing 'Ask search engines not to index this site.'

Topic Closed

This topic has been closed to new replies.

About this Topic