Changed site address without moving wp files, but can't access wp-admin now
-
I have everything working EXCEPT access to the wp-admin panel. I get a 500 Internal Server Error.
These were my steps:
1. In the WP settings I updated the site url address to the root: https://www.domain.com
The site files however are staying in the subdirectory: https://www.domain.com/directory
I followed these instructions2. I Copied the .htaccess and index.php file over to the root directory as those instructions said. I still had to finagle the .htaccess file to get it to work:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wp/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
3. I manually added this code to the wp-config.php file:
define('WP_SITEURL','https://www.domain.com/directory'); define('WP_HOME','https://www.domain.com');
4. I logged into the hosting control panel’s phpMyAdmin and took a look at the options tables. The site url there had not updated so I manually updated it. Here’s what it is:
1 siteurl https://www.domain.com/directory
2 home https://www.domain.comAt this point, I had gotten everything to work
– https://www.domain.com loads the wp site fine even though the files are sitting in https://www.domain.com/directory while still showing the root url
– the interior site pages all load fine, and show as permalinks from the root url (the /directory/ disappears if you try to add it to the url)The problem is that the wp-admin urls give a 505 Internal Server error and I don’t know what else to try.
Neither of these work:
https://www.domain.com/wp-admin (this one on the other hand, automatically adds the /directory/ no matter what)
https://www.domain.com/directory/wp-adminIt seems the .htaccess rewriting rule is/isn’t applying just for wp-admin ?
TIA!
- The topic ‘Changed site address without moving wp files, but can't access wp-admin now’ is closed to new replies.