WordPress Development Asked by Patrick Bateman on January 2, 2022
My site used to be in www.website.com/wordpress, now I’ve moved it to the root (www.website.com).
I followed the wp codex instructions:
1. changed site url in admin cp – after I saved changes, I got an error message (probably because the site wasn’t there yet)
2. moved all the files from /wordpress folder to root folder.
3. updated permalinks in the new admin cp (the site worked fine), made sure htaccess was writable.
Then suddenly, only admin panel works – not the pages. I’m not even sure I did anything before it stopped working…
What could be wrong?
I just had the same problem, and this is what worked for me: go to Admin -> Settings -> Permalinks. Under Common Settings, select another URL structure, click Save Changes (for me it was changing from Day and name to Plain). Got to your website, and see that pages are working again with the changed URL structure. And then change it back to what you had before (for me it was changing from Plain to Day and name).
Answered by Newman on January 2, 2022
You need to login to the database and manually edit 2 entries. In the wp_options table you can find siteurl
and home
. Update those appropriately, you should then be able to login properly.
You also need to update your .htaccess
file but if you edit your permalink options and then change them back this should rewrite it for you.
For future reference to simply change directory of your installation if you login to the WP admin and go to Admin -> Settings -> General you can change the Wordpress Address and Site Address (the options you changed manually in the database) there. Once changed simply copy the entire installation folder to the new location and that will be it. It's easier to make the changes before you move it than after.
Answered by Bindiya Patoliya on January 2, 2022
0 Asked on November 22, 2020
0 Asked on November 19, 2020 by szachmat
0 Asked on November 15, 2020 by tacker
1 Asked on November 14, 2020 by joboy2212
1 Asked on November 7, 2020 by garrett-massey
1 Asked on November 3, 2020 by pual
1 Asked on October 27, 2020 by nikname
1 Asked on October 26, 2020 by zeth
3 Asked on October 24, 2020 by dave
0 Asked on October 24, 2020 by diederick-l
1 Asked on October 20, 2020 by quyet
2 Asked on October 18, 2020 by fntc
0 Asked on October 11, 2020 by shaun-hearnden
1 Asked on October 8, 2020 by rickmorty
1 Asked on October 1, 2020 by kwa
0 Asked on October 1, 2020 by demon
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP