Let’s learn from my mistake, shall we? A couple weeks ago, I changed the WordPress permalinks on another site of mine. The site is growing up and I wanted to make the WordPress permalinks more user friendly. I read somewhere that if I changed the WordPress permalink settings it wouldn’t break my links. I went with that notion. And simply because I knew there was always a tech issue to resolve when changing things. I would deal with the potential issue as it came.
Well, it did redirect the permalinks on the site. But I was oblivious at the time to think outside the site. But didn’t find out a couple weeks down the road and 843+ broken links later!
Why didn’t you notice it right after you changed the permalink?
The links on the main page of my site redirected. The pagination (numbering or ‘older post/newer post’ at bottom of blog posts page) worked just fine. Links on my Navigation bar were okay.
It wasn’t until I used Google search that I found the broken links. Tons of 404 errors. I freaked out! Especially when you know your ad network revenue is based off impressions.
Then I quickly calmed my nerves, after telling myself all I can do here forward, is to fix the problem.
I now want to share with you How to Change Permalinks in WordPress without breaking links so I can save you tons of trouble and heart ache.
Change Permalinks in WordPress
Originally, I had mine set on ‘Day and Name’ option.
I changed it to reflect ‘category’ and ‘post name’. This made for a short URL – much more user friendly.
Click link to learn about using permalinks and more permalink tags
TIP: Go to WP dashboard > Settings > Permalinks > Common Settings
After discovering the problem. I had to do a 301 redirect and didn’t want to touch my .htaccess file.
So I tried the Advanced Permalink WP Plugin. I knew the developer wasn’t working on the plugin anymore, but since I wanted a simple 301 redirect for my permalinks I didn’t think it would be a problem. Unfortunately, it broke my site. I didn’t realize that until a few days later. Oi! One thing after another. My pagination broke. You could not go past page 1!
Luckily, I traced the issue to the plugin and disabled it. Pagination worked again. But I wouldn’t be able to resolve the pagination problem due to the developer no longer working on it.
Resolution: The Simple 301 Redirect Plugin by Scott Nelle
I already had it installed on my site and finally remembered it. And luckily, it quickly resolved my wordpress permalink problem.
1) Go to the Plugins tab, Add New. Search for ‘simple 301 redirects’.
3) Activate the plugin through the ‘Plugins’ menu in WordPress
4) Go to Settings > 301 Redirects
Request: add old permalink structure.
Destination: new permalink structure.
Note: Don’t copy the example link under Permalink settings (ie. http://www.yourURL.com/2012/06/03/sample-post/). You need to format the URL example to reflect the WordPress Permalink Structure Tags (example: /%year%/%monthnum%/ %day%/%postname%/)
6) Do a Google search. Your outside links should now be fixed.
Final Note: if you have a sitemap (which you should) – manually reindex it. You can also do this in Google webmaster tools under Optimization > Sitemaps > select sitemap > resubmit.
Eventually, when your site gets crawled again by Google, it will fix the links. There is no determined set of time on how long it will take. Just be patient.
As for sitemap info… that’s a whole other post.
Did you enjoy this post? Sign up by email to receive my free blogging tips! No spam. I totally respect your privacy.