WordPress菜单永久链接重定向错误问题求助
Let’s walk through fixing this common hiccup step by step—this is usually tied to cached data or stale permalink rules that didn’t update properly when you swapped your pages.
1. Flush Your WordPress Permalink Rules
Permalink structures can get stuck when renaming pages, leading to incorrect redirects. Here’s how to reset them:
- Navigate to Settings → Permalinks in your WordPress admin.
- You don’t need to change any settings—just click the Save Changes button at the bottom. This forces WordPress to regenerate its permalink database.
- Do this twice to ensure the changes fully take effect.
2. Clear All Cached Data
Caching is the most frequent culprit for stale menu items or broken redirects:
- Site Cache: If you use a caching plugin (like WP Rocket, W3 Total Cache) or your host offers built-in caching, use the "Purge All" or "Clear Cache" option to wipe stored data.
- Browser Cache: Open your browser’s settings, find "Clear browsing data," and clear cached images/files and cookies for your site. Alternatively, test the site in an incognito window to bypass local cache.
- Server Cache: Some hosts (e.g., SiteGround, Bluehost) have server-side caching—check your hosting dashboard to flush this as well.
3. Fix the Leftover Menu Item Glitch
If the truncated "Pricing-ol..." item is still showing up, the menu likely has leftover references:
- Go back to Appearance → Menus.
- If the "Pricing-ol..." item is visible in the menu structure, select it and click the trash icon to remove it, then save the menu again.
- If it’s not visible, open the Screen Options dropdown at the top right of the page. Ensure Pages is checked, then look for the "Pricing-old" page in the left sidebar. If it’s accidentally added to the menu, remove it and save.
- If the issue persists, try creating a new menu from scratch:
- Note the locations your current menu is assigned to, then delete the problematic menu.
- Build a new menu, add the correct "Pricing" page and other necessary items, assign it to the original locations, and save.
4. Verify Page Permalinks & Redirects
Double-check that your pages have the correct permalinks and no rogue redirects:
- Go to Pages → All Pages.
- Edit the "Pricing" page: Confirm its permalink is set to
/pricing(edit this in the "Permalink" section under the page title). - Edit the "Pricing-old" page: Confirm its permalink is set to
/pricing-old.
- Edit the "Pricing" page: Confirm its permalink is set to
- Test both URLs directly in your browser to ensure they load the correct pages. If there’s still a wrong redirect, check if you have a redirect plugin (like Redirection) with outdated rules—delete any entries pointing the old
/pricingURL to the wrong place.
5. Rule Out Plugin Conflicts
Sometimes plugins interfere with menu or permalink behavior:
- Temporarily deactivate all plugins except WordPress core.
- Test the menu and permalinks again. If the issue is fixed, reactivate plugins one by one until you find the conflicting one.
- Clear cache after each activation to avoid false positives.
If you work through these steps, your menu should display correctly, and permalinks should redirect to the right pages. Let me know if you hit any snags!
内容的提问来源于stack exchange,提问作者RubyRedGrapefruit

