New Landing How can we help? Cardinal move site from subdirectory to root

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #163666
    clemens2284
    Member
    Post count: 23

    Hi,
    I’ve installed wordpress with its entire content to the subdirectory /wordpress.
    I’d like to move everything to root, so that it’s possible to access the site without /wordpress.

    I’ve changed the index.php from the wordpress folder to

    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./wordpress/wp-blog-header.php’);
    ?>

    and copied it to the root folder.

    Under wordpress settings I’ve changed the url to:
    wordpress address (url):www.domain.com/wordpress
    site address (url):www.domain.com

    When I open the site now without /wordpress I get two error messages at the bottom of the page?

    Thanks for your help.

    #163674
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    That’s not the way I’d do it, you’d have to move the site to the root folder, then upload this file: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ and run the find and replace script to replace:

    domain.com/wordpress

    with

    domain.com

    – Kyle

    #163682
    clemens2284
    Member
    Post count: 23

    I’ll give it a try thanks.

    #163684
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Let us know the result. Thanks Kyle
    -Rui

    #163692
    clemens2284
    Member
    Post count: 23

    Yes I’ll try it later, I’ve changed everything back as it was. However, when I try to open the site now with /wordpress like before, it automatically switches to http://www.zoomaudio.at/?clients=wordpress?

    When I try to open my start page it switches to ?clients=wordpress,
    and when I set a complete new site as start page, it won’t load and again shows ?clients=wordpress?

    Everything else works like before. I guess it wasn’t the best idea to change php files…

    #163695
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Probably because the changes in the index.php or the htaccess

    You can use a plugin like this to help you migrate the site.

    Duplicator – WordPress Migration Plugin

    -Rui

    #164016
    clemens2284
    Member
    Post count: 23

    Hi Rui,

    duplicator looks easy to use, but I couldn’t export the archive because of some php issues of my host. (timeouts, open_basedir) then I tried to copy database and wordpress files manually to the root folder. I had some problems importing the sql file to the new database and link it to the new wp-config.php

    I’ve finally changed the new wp-config.php to the old database and everything works now!

    Thank you guys!

    #164019
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    no problem. Glad it’s sorted.

    -Rui

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register