Main site works, but others don't after move.
-
Hey guys,
I just recently moved my wordpress site from https://forsaken-ro.net/wordpress to https://forsaken-ro.net as you can see, the main site works fine after I modified htaccess and ran a query that replaced all https://forsaken-ro.net/wordpress to https://forsaken-ro.net/wordpress.
However, my other sites (i.e. https://forsaken-ro.net/tokenshop) do not work. If you go to https://forsaken-ro.net/tokenshop it will give you a 404 error, however if you go to https://forsaken-ro.net/wordpress/tokenshop the main page will work but any other page will not. In wp-config I have these values set:
define(‘DOMAIN_CURRENT_SITE’, ‘forsaken-ro.net’);
define(‘PATH_CURRENT_SITE’, ‘/wordpress/’);If I have /wordpress/ to anything else, it will give me a database connection error. I tried changing it to / to nothing, I even tried the cwd. Any suggestions?
PS: When i try to login to wp-admin, it just looks, I assume this is related to this? Thank you!
*Update* I moved a copy of the site files to https://forsaken-ro.net/wordpress and I was able to get into the login to wp-admin. I tried changing:
define(‘PATH_CURRENT_SITE’, ‘/wordpress/’);
to
define(‘PATH_CURRENT_SITE’, ‘/’);
Like it suggested. When I do this the main site (https://forsaken-ro.net) does not work but https://forsaken-ro.net/tokenshop does. Under “Sites” in the network admin page, the main site is set to /wordpress/ and I cannot change it (grayed out). I changed the other sites without issue.
- The topic ‘Main site works, but others don't after move.’ is closed to new replies.