Support » Fixing WordPress » Moved WordPress to a different folder site gives errors

  • Resolved Brehon


    General Summary
    I openly admit I am a novice. I recently installed and set up everything on my website via a subdirectory. Once everything was complete, I then copied it all to a different location (same server, just one level up). At first it worked. I posted, that worked. Then when I went back to it (right after I posted up everything was working on twitter) and I was given an error message on a white screen.

    I went to original sub directory it was in, in fact put in a simple index file in the main folder that pointed to the /wordpress/ location but none of that works either. All the links and things are there, but to click on any page results in the page simply refreshing itself.

    When moving wordpress, in particular what files need to be updated for locations and is this a possible permissions issue?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p


    Logs and Error Messages

    Here is the original index file in the directory I wanted WordPress to be in.

     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     * @package WordPress
     * Tells WordPress to load the WordPress theme and output it.
     * @var bool
    define('WP_USE_THEMES', true);
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );


     * Loads the WordPress environment and template.
     * @package WordPress
    if ( !isset($wp_did_header) ) {
    	$wp_did_header = true;
    	require_once( dirname(__FILE__) . '/wp-load.php' );
    	require_once( ABSPATH . WPINC . '/template-loader.php' );

    here is the error.log

    [17-Dec-2013 12:25:01 America/Detroit] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
    [17-Dec-2013 12:25:01 America/Detroit] PHP Fatal error:  Unknown: Failed opening required '/xxx/xxx/xxx/' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

    Meant to put these in the original post.

    Tara thank you. Follow up question. Since I already moved it to another folder, do I have to do the database changes? Aka the database was specific to the old folder?

    Second follow up – Since I have it still have it in the /wordpress sub, is there anything special I need to do to make that original subfolder work again?

    Moderator t-p


    My recommendation would be to leave everything in the /wordpress folder

    As long as nothing was edited, everything will still work

    Then follow the giving wordpress it’s own directory instructions @tara linked, it has a section specific to wordpress already installed in a subdirectory

    it’s a simple setup, adjust your settings, copy files over to your root directory and a simple edit!

    Hi Brehon.

    When I first started using WordPress I made a few mistakes, So It’s a natural thing for this to happen. I don’t think anyone has got it right on the first try 😛

    Depending on what you’re doing, and What content you have. It may actually be easier to reinstall WordPress on the new domain, and Use the Import/Export tool to export all your Posts and Pages, Then Import them to the new Installation, If you’ve made any customizations on the theme itself you can Copy over the Styles Sheet and Header, Footer whichever it was, And it will all display normally again. If you used a “Add Custom CSS” tool in the theme, You can always just copy and paste it to the new Installation.

    And here is my tip of the day: If you transfer a website from one domain to another in the future, Once you’ve made the transfer and think everything is well, Go to the old account or folder and Rename the wp-content folder, Then go to the new Website and press Shift+F5 and if you see any issues, You haven’t transferred it properly.

    Good Luck 🙂


    Thank you very much. Your input is actually very solid advice.

    Rev, Voodoo,

    Also good info, thank you.


    Thank you for the set of links 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Moved WordPress to a different folder site gives errors’ is closed to new replies.