Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
    
I used the same htaccess file so it's probably not corrupted htaccess? Also, I tried adding memory with php.ini. I also tried disabling plugins and re-uploading core files. –  Patrick Bateman Sep 5 '13 at 1:27
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.