AnswerBun.com

Wordpress site not working after move

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?

2 Answers

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

Add your own answers!

Related Questions

Add Featured Image and Title to wp_nav_menu items

1  Asked on November 19, 2020 by red5

   

Google Analytics – add script to functions.php

0  Asked on November 19, 2020 by szachmat

   

Modify Maximum upload file size text in WordPress Media

0  Asked on November 15, 2020 by tacker

   

How to display fields from the loop in two separate divs

1  Asked on November 3, 2020 by pual

   

Correct permalinks and 404-error

1  Asked on November 1, 2020 by vlad

   

Add custom field to Posts and sort by it

1  Asked on October 27, 2020 by nikname

     

How to generate the COOKIEHASH from JavaScript

1  Asked on October 26, 2020 by zeth

   

Custom permalink variable on single post

1  Asked on October 20, 2020 by quyet

   

get_terms (or tax_query) for term of current post?

2  Asked on October 18, 2020 by fntc

     

How to customize the Lost Password URL?

0  Asked on October 17, 2020 by radu

   

How to add one time a new page?

1  Asked on October 17, 2020 by zed93

 

Woocommerce tables not responsive mobile

1  Asked on October 8, 2020 by rickmorty

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP