Title: Problems moving wordpress from a subdirectory
Last modified: August 21, 2016

---

# Problems moving wordpress from a subdirectory

 *  Resolved [LostInDaJungle](https://wordpress.org/support/users/lostindajungle/)
 * (@lostindajungle)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-a-subdirectory/)
 * I have a wordpress install that was placed in /wp/ for testing and set up.
 * I am following the instructions from [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 * I have done this several times, and each time I get to step 7, login to your 
   admin panel and update permalinks, I get errors like the following:
 * Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate
   7680 bytes) in /home/holidays/public_html/wp/wp-content/plugins/jetpack/modules/
   widgets/gravatar-profile.php on line 130
 * It is a different php file each time.
 * My .htaccess:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /wp/
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /wp/index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * index.php
 *     ```
       <?php
       /**
        * 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('./wp/wp-blog-header.php');
       ```
   
 * I know that I can run other php files from my root directory. I have W3 Total
   Cache installed, and I disabled the plugin but still no luck. I have tried doing
   a search and replace of the Database with no change.
 * What should I be looking at?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-a-subdirectory/#post-3761956)
 * Try [increasing the memory available to PHP](http://wordpress.org/support/topic/253495#post-1017842).
 *  Thread Starter [LostInDaJungle](https://wordpress.org/support/users/lostindajungle/)
 * (@lostindajungle)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-a-subdirectory/#post-3761962)
 * The memory settings are the same as when it is installed in a sub-directory, 
   and the site works in the sub-directory. I have tried bumping it up to 256MB,
   and still no change. For those reasons, I don’t think this has to do with memory
   usage.
 *  Thread Starter [LostInDaJungle](https://wordpress.org/support/users/lostindajungle/)
 * (@lostindajungle)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-a-subdirectory/#post-3762030)
 * I have decided to just move the site to the root. Closing this post.

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

The topic ‘Problems moving wordpress from a subdirectory’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [LostInDaJungle](https://wordpress.org/support/users/lostindajungle/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/problems-moving-wordpress-from-a-subdirectory/#post-3762030)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
