SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advice with moving WP site up one directory

    I have a site that is running on a Linux server. The site home page is index.php. We build a WordPress site at root/newsite. The WordPress site is ready to go live.

    Can I just delete the original site and move the WordPress site up one level?

    Would it be better to use a redirect in htaccess?

    Should I just export the site, delete everything, install WordPress in the root, and import the site? (Would this even work?)
    Each day is a learning experience.

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Posts
    1,849
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    There are some configuration changes you will have to make in Wordpress. If you are using plugins, there may be even more configuration changes you have to make. For a simple, basic installation with no plugins you will have to change the URL in the "WordPress Address (URL)" and "Site Address (URL)" in the Wordpress admin screen to reflect the new URL after your move. You can find these two options in Settings => General. Then you should be able to copy and paste all of your Wordpress files from the directory they are currently in to the root directory.

    If you have a simple setup, moving up a directory will be pretty easy. Shouldn't take you more than a couple of minutes. I wouldn't bother with exporting, reinstalling, and then reimporting. You shouldn't need to. And I certainly would not recommend an htaccess redirect for a move that may be very simple.

    http://codex.wordpress.org/Moving_Wo...or_URLs_Change

    If you are using plugins, things may or may not be more complicated. Read the link above for more details.

  3. #3
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just delete the old one and move the sub to top. Open the wpconfig.php from root directory and configure the database and site link. It will work without any issue

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2009
    Location
    South Carolina
    Posts
    458
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fortunately, it was a small site with easy setup. I managed to get everything messed up, and just deleted the entire site, and reloaded WordPress at the top where I wanted it..
    Each day is a learning experience.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •