Out Of Memory Problem with a WordPress Site

4 replies
  • WEB DESIGN
  • |
I have questions if anyone will be so kind to help me resolve this problem.

Background:
I have just moved my WordPress files from the root directory to another directory and followed the instructions from this webpage Giving WordPress Its Own Directory « WordPress Codex

In step 6, where it says move WordPress core files to the new location, I moved the following folders:

wp-admin
wp-content
wp-includes

I also moved the following files:

wp-*
xmlrpc.php
readme.html
license.txt


Questions:
1) Should I have moved the .htaccess and the index.php files to the new directory?

2) After the move, what should be the changes (if any) of .htaccess? What about the index.php changes apart from pointing the wordpress environment and template to the new location?
#memory #problem #site #wordpress
  • Profile picture of the author gigiads
    Patrick, that is what confuses me because if step 7 instructs one to copy index.php and .htaccess to the root, why move it and then copy it back in the first place? Does it mean that during the move, the .htaccess and index.php will have some changes or does it just mean that there should be a copy of .htaccess and index.php in both the new location and the root?
    {{ DiscussionBoard.errors[9787392].message }}
  • Profile picture of the author Ron Killian
    Usually the key information the htaccess holds is the permalink structure. If you use permalinks and just move the htaccess file, then your site probably won't work. Because it will be in a different spot.

    If it was me, I would not move the htaccess file, just move everything else. Then when the site is running, you log into your dashboard, go to permalinks settings, adjust them how you want and wordpress should create a new htaccess file.

    The only other thing, if your old htaccess file has other entries. Usually they don't, but it's a possibility. So of course save your old htaccess file just in case you need code from it.

    As for the index.php file, that does not get changed, unless you make changes yourself.

    Does that help?
    Signature
    PLR Affiliate Program Has Launched! Easily Promote Over 5,000 PLR and MRR Products.

    Largest Selection of PLR Articles on the Planet! PLR Ebooks, PLR Video, PLR Websites and more with Private Label Rights
    {{ DiscussionBoard.errors[9787467].message }}
    • Profile picture of the author gigiads
      Thanks Ron.

      There is an instruction from wordpress to change the index.php.

      I think I'm kind of getting all these now.

      Originally Posted by Ron Killian View Post

      Usually the key information the htaccess holds is the permalink structure. If you use permalinks and just move the htaccess file, then your site probably won't work. Because it will be in a different spot.

      If it was me, I would not move the htaccess file, just move everything else. Then when the site is running, you log into your dashboard, go to permalinks settings, adjust them how you want and wordpress should create a new htaccess file.

      The only other thing, if your old htaccess file has other entries. Usually they don't, but it's a possibility. So of course save your old htaccess file just in case you need code from it.

      As for the index.php file, that does not get changed, unless you make changes yourself.

      Does that help?
      {{ DiscussionBoard.errors[9788464].message }}

Trending Topics