Problems moving WordPress from root to subdirectory
-
Hi there,
I know I did something wrong but can’t figure out what.
My wordpress blog was in my root, and I created a directory called “journal” and moved it in there.
I then added to my wp-config.php file, which is in my new “journal” directory the following code:
define(‘WP_HOME’,’http://bettinashzu.com/journal/’);
define(‘WP_SITEURL’,’http://bettinashzu.com/’);I tried to use the Velvet Blues plugin to change my links, but that didn’t work.
I then found this page and tried to follow its directions: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
For step 7, I got a bit stuck: “Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address).”
I do not have a .htaccess file, so I have index.php in both my root and in my “journal” directory.
In my root I also have a file named index.html. Does this interfere with index.php?
For both of the index.php files, I have edited it thus:
require(‘./journal/wp-blog-header.php’);
When I try to login at http://bettinashzu.com/journal/wp-login.php, however, I get directed to http://bettinashzu.com/wp-login.php
with an error message saying that “Not FoundThe requested URL /wp-login.php was not found on this server.”
What am I doing wrong?
I have no php experience, some HTML/CSS/JavaScript.
Thanks so much!
The topic ‘Problems moving WordPress from root to subdirectory’ is closed to new replies.