Can’t move installation from root to subfolder
-
Hi there,
I wanted to have my old WP site accessible again. It still has some content I would like to reach. Luckily I can reach the backend still but also would like to have the page running again in a subfolder also by having the subfolder in the URL. It was a installation in the root directory and as I brought my new page online it was not accessible anymore (only the backend). Although I already moved everything it still get’s redirected to my new page which is residing in a subdirectory also and redirected to from the root
index.php
.So here is what I did:
– I changed the URLs in the settings of the admin-backend
– I moved everything related to WP to that subdirectory
– I double checked the database and all URL-related entries
– I double checked the code for hard coded URLs
– I checked requires in the the index.php in the subfolder which seem to be fine.
– I double checked then language plugin which is also involved into URL building
– I also checked the .access files which also have the wordpress passage in there including the subfolder in the root as well as in the subdirectory.What works:
– I can access wp-admin in the subdirectory and edit things
– I can call the infophp.php within the subfolderwhat does not work:
– Any Wp page also previews are always redirected to my new page. That makes me think that for some reason the root directory is still called and not directly the subfolder. But I can not find the reason for this now.Any ideas well appreciated!
Here is the content of the root .access:
php_value memory_limit 256M
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase //
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . //index.php [L]
</IfModule>
Options Indexes FollowSymLinks Includes ExecCGI MultiViews# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule># END WordPress
That all looks good for me.
The page I need help with: [log in to see the link]
- The topic ‘Can’t move installation from root to subfolder’ is closed to new replies.