After WP moved from subdirectory to root, some links broken
-
After creating my WP site in a subdirectory, I moved it to the root directory by doing the following:
1. WPAdmin: Settings> General> change wordpress url and site url to https://www.andpi.org, saved changes.
2. Using FTP access with Filezilla: Moved existing site files to “archive” folder in root directory.
3. Moved all wp2016 subdirectory contents to root directory.
4. Site front page loaded properly after the changes above.
But I noticed that the links on the front page were no longer working. They were pointing to the old location https://www.andpi.org/wp2016/… instead of https://www.andpi.org/…
5. I went to WP Admin Settings> Permalinks and observed they were set to “Custom” with https://www.andpi.org//%postname%/.
6. I changed Permalinks to “Plain” – and the “menu” links work! – but the articles and slider images linked do not work. I get a 404 error.
I noticed that my root directory did not have the .htaccess file – I had a copy of this file on my desktop, have tried to upload it, with no success.
I would like to use post name as my link settings, but not sure how to make this work. Or to get the .htaccess in the root directory. Oddly, I can’t delete the (seemingly) empty subdirectory “wp2016”.
Thoughts?
- The topic ‘After WP moved from subdirectory to root, some links broken’ is closed to new replies.