Title: Moving Directory giving Error
Last modified: August 21, 2016

---

# Moving Directory giving Error

 *  [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/)
 * This errors keep showing after I’ve moved my site, and thought I’d followed directions
   carefully for moving directory…
 *     ```
       Warning: require(/home/xxxxx/public_html/wordpress/wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxx/public_html/wordpress/index.php on line 17
   
       Fatal error: require() [function.require]: Failed opening required '/home/xxxxx/public_html/wordpress/wordpress/wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/wordpress/index.php on line 17
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [silver530](https://wordpress.org/support/users/silver530/)
 * (@silver530)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050878)
 * Hi, try `include` function instead of `require`.
 *  [Vaughan](https://wordpress.org/support/users/m0nty/)
 * (@m0nty)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050967)
 * hi,
 * Is that path actually correct?
 * Using FTP, can you check that you actually have a wp-blog-header.php file located
   in your /public_html/wordpress/wordpress/ folder?
 * That error is just saying that it can’t find the actual file it’s looking for.
 * But with the double /wordpress/wordpress/ in the path, can you doublecheck that
   you have entered the correct paths in wp-config.php, htaccess etc. It looks like
   you might have just entered a path wrong somewhere.
 *  Thread Starter [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050970)
 * I want just a single “/wordpress” .. not a double one, so I think the path is
   wrong?
 *  Thread Starter [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050971)
 * This is what’s in the index.php
 *     ```
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
       ```
   
 *  [Vaughan](https://wordpress.org/support/users/m0nty/)
 * (@m0nty)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050977)
 * You shouldn’t really need to edit the index.php file.
 * Can you change that to
 *     ```
       /** Loads the WordPress Environment and Template */
       require( dirname( __FILE__ ) . '/wp-blog-header.php' );
       ```
   
 * dirname(__FILE__) should be all that’s required. you shouldn’t need the /wordpress
   part.
 * Hope this helps
 *  Thread Starter [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050978)
 * Once I do that, I just get a blank white page.
 *  [Vaughan](https://wordpress.org/support/users/m0nty/)
 * (@m0nty)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050979)
 * something else must also be incorrect then too.
 * Can you post a copy of your htaccess and wp-config.php (remove any DB details
   from it before you paste it though)
 *  Thread Starter [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050980)
 *     ```
       <?php
       //The entry below were created by iThemes Security to disable the file editor
       define( 'DISALLOW_FILE_EDIT', true );
   
       //Do not delete these. Doing so WILL break your site.
       define( 'WP_CONTENT_URL', 'http://samforan.ca/wordpress/content' );
       define( 'WP_CONTENT_DIR', '/home/samf9424/public_html/wordpress/content' );
       /**
        * The base configurations of the WordPress.
        *
        * This file has the following configurations: MySQL settings, Table Prefix,
        * Secret Keys, WordPress Language, and ABSPATH. You can find more information
        * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
        * wp-config.php} Codex page. You can get the MySQL settings from your web host.
        *
        * This file is used by the wp-config.php creation script during the
        * installation. You don't have to use the web site, you can just copy this file
        * to "wp-config.php" and fill in the values.
        *
        * @package WordPress
        */
   
       // ** MySQL settings - You can get this info from your web host ** //
       /** The name of the database for WordPress */
       define('DB_NAME', 'xxxx');
   
       /** MySQL database username */
       define('DB_USER', xxxx);
   
       /** MySQL database password */
       define('DB_PASSWORD', 'xxxx');
   
       /** MySQL hostname */
       define('DB_HOST', 'localhost');
   
       /** Database Charset to use in creating database tables. */
       define('DB_CHARSET', 'utf8');
   
       /** The Database Collate type. Don't change this if in doubt. */
       define('DB_COLLATE', '');
   
       /**#@+
        * Authentication Unique Keys and Salts.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
        *
        * @since 2.6.0
        */
       define('AUTH_KEY',         'xxxx');
       define('SECURE_AUTH_KEY',  'xxxx');
       define('LOGGED_IN_KEY',    'xxxx');
       define('NONCE_KEY',        'xxxx');
       define('AUTH_SALT',        'xxxx');
       define('SECURE_AUTH_SALT', 'xxxx');
       define('LOGGED_IN_SALT',   'xxxx',       'xxxx');
   
       /**#@-*/
   
       /**
        * WordPress Database Table prefix.
        *
        * You can have multiple installations in one database if you give each a unique
        * prefix. Only numbers, letters, and underscores please!
        */
       $table_prefix = 'xxxxxx';
   
       /**
        * WordPress Localized Language, defaults to English.
        *
        * Change this to localize WordPress. A corresponding MO file for the chosen
        * language must be installed to wp-content/languages. For example, install
        * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
        * language support.
        */
       define('WPLANG', '');
   
       /**
        * For developers: WordPress debugging mode.
        *
        * Change this to true to enable the display of notices during development.
        * It is strongly recommended that plugin and theme developers use WP_DEBUG
        * in their development environments.
        */
       define('WP_DEBUG', false);
   
       /* That's all, stop editing! Happy blogging. */
   
       /** Absolute path to the WordPress directory. */
       if ( !defined('ABSPATH') )
       	define('ABSPATH', dirname(__FILE__) . '/');
   
       /** Sets up WordPress vars and included files. */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 *  Thread Starter [samforan](https://wordpress.org/support/users/samforan/)
 * (@samforan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050981)
 * This .htaccess file is in the root directory, above my “/wordpress” folder.
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       # END WordPress
   
       RewriteEngine On
       RewriteCond %{HTTP_HOST} ^(www.)?samforan.ca$
       RewriteRule ^(/)?$ wordpress [L]
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Moving Directory giving Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [samforan](https://wordpress.org/support/users/samforan/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/moving-directory-giving-error/#post-5050981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
