• Resolved redone75

    (@redone75)


    Hello.

    I’m having some difficulties transferring sitename.net to sitename.com on the same server. Currently, the site structure is as follows with the WordPress installs in the root of each domain:

    _ root
    — sitename.net
    — sitename.com

    Ideally, I’d like to clean up the new .com directory by placing the wordpress files in the sub directory “wp” like:

    _ root
    — sitename.net
    — sitename.com
    — wp

      Here’s what I’ve done so far (in order):

    1. backed up database from sitename.net
    2. downloaded wp-content from sitename.net

    What’s the best way to move forward, I’ve tried several options and all have failed. FYI, I have the option to “quickinstall” the latest build of WordPress through the control panel.

    The client wants the site up by EOD today, so any guidance would be extremely appreciated.
    Mike

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try installing WP in sitename.com/wp and then using the approach outlined in Giving_WordPress_Its_Own_Directory to allow WP to control the root sitename.com domain.

    Thread Starter redone75

    (@redone75)

    Well, I figured out a solution. Not the ideal way I mentioned above, but a rather quick switch.

    1. Logged into wordpress admin (sitename.net).
    2. Go to the Administration > Settings > General panel.
      In the box for WordPress address (URI): change the address to the sitename.com
      In the box for Blog address (URI): change the address to the sitename.com
    3. Click Save Settings.
    4. Renamed “sitename.net” directory to “sitename.com”
    5. Logged into PHPmyAdmin
    6. Changed Siteurl & Homeurl
      UPDATE wp_options SET option_value = replace(option_value, 'https://sitename.net','https://sitename.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    7. Changed GUID
      UPDATE wp_posts SET guid = REPLACE (guid, 'https://sitename.net','https://sitename.com');
    8. Change URL in Content
      UPDATE wp_posts SET post_content = REPLACE (post_content, 'https://sitename.net','https://sitename.com');

    SQL help from this post: https://www.tipstechtricks.com/2010/05/13-wordpress-sql-queries-to-know.html

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Move site to new URL on the same server.’ is closed to new replies.