May 27, 201115 yr Long story short, I moved a Wordpress site (following this guide like I have before) from a dev folder to the root of the site and it's screwed up the permalinks. Strangely, it's not all the permalinks though. Half of the pages and posts are using the new structure, ie: www.domain.com/postname/ But the other half show 404 pages. However if I try to go to view the page using the old structure, they show up: www.domain.com/wordpress/postname/ This is only under the custom permalink settings of "/%postname%/". If I switch back to default link structure everything works fine! I've tried resetting the permalinks, clearing the .htaccess, disabling/enabling the theme, checked the Site URL and Wordpress address in the Settings, I've even gone through the DB to find any references to the old URL structure but nothing seems to work. Anyone get any ideas? How can I get Wordpress to update the link structure for all pages and posts?
May 27, 201115 yr I've had problems moving wordpress sites around before - when it last happened to me I had to delete a couple of rows from one of the DB tables that stored the permalink settings. Looks like you've already covered that though. You haven't got a cache plugin or anything running, have you?
May 27, 201115 yr Author Nope, no cache or minify plugins running. I've tried clearing browser caches and using different computers and browsers. Do you remember which DB rows you deleted, Lee?
May 28, 201115 yr Nope, no cache or minify plugins running. I've tried clearing browser caches and using different computers and browsers. Do you remember which DB rows you deleted, Lee? I can't off the top of my head unfortunately. I'll have a look and see if I can work it out.
May 28, 201115 yr Think it was permalink_structure in the wp_options table. Sounds like you've already checked that though.
Create an account or sign in to comment