I followed the guideline from WP Codex.
- Changed the site url in general settings
- Copied the .haccess and the index.php files from the subdirectory to the root
- Edited the root index.php (new copied file in root) from: ‘/wp-blog-header.php’ ); to ‘/subdirectory/wp-blog-header.php’ );
-
checked the permalink structure. the following code is in the new copied root .haccess file
# 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}
When I navigate the new site my permalinks seem to be working.
for example
ruthsabrosa.com/birth-preparation
does not show as
subdirectory.ruthsabrosa.com/birth-preparation
But now the problems:
I need to type in the full old url structure to see the admin bar
http://yogaseowp.ruthsabrosa.com/birth-preparation/
When I edit this page or any other page and try to preview changes I get:
You do not have permission to preview drafts.
Also after I update the post it successfully updates but when I view the post I am directed to my root url which I expected: ruthsabrosa.com/birth-preparation/
However my top admin bar is now gone, also this root directory page is not updated. Only my original page: yogaseowp.ruthsabrosa.com/birth-preparation/ is showing the update and the admin bar.
So when someone uses the sites navigation or lands on the ruthsabrosa.com/birth-preparation/ page from a search they don’t see the updated content.
I’ve been looking at this for several hours and the change made to while logged in to yogaseowp.ruthsabrosa.com/birth-preparation/ seems to eventually appear in the main ruthsabrosa.com/birth-preparation/ page, perhaps it takes about 1 hour for the change to appear.
It’s incredibly frustrating to make any changes or updates to the website now as I keep having to manually add the complete url with subdiretory to make changes to any page or post, can’t preview any change and I am still not convinced all changes will eventually appear in the root directory pages.
Any guideance would be appreciated.