Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Moved Wordpress site, permalinks screwed up!

Featured Replies

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?

Updated the URL in the general settings? Cleared your browsers cache?

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?

  • 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?

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.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.