WordPress Articles

What happened to my permalinks?

November 30, 2018

Hey folks, if you’re like me, once in a while, you may find that your permalinks get broken.  Sometimes, it’s because you’ve updated your WordPress theme and your nice looking permalinks have gone from something pretty like:

http://example.com/best-blog-post-ever

to something ugly like:

http://example.com/?p=123

So what’s the deal with that?  You never asked WordPress to revert to ugly permalinks, why did this happen?  More importantly, how do I fix these ugly permalinks?

Some folks find that the permalinks get broken after updating their Apache server.  Whatever the cause, the solution is often pretty simple.

Just log into your hosting account and delete the .htaccess file.  Don’t worry, this isn’t going to break anything at all.  You need to force the .htaccess file to flush itself out and recreate the rules.

Once you’ve deleted .htaccess, visit your permalinks again and make sure you’ve selected the proper permalinks that you want.

The .htaccess file should regenerate itself and you’ll be good as new.

If that doesn’t work, and occasionally it doesn’t, you may need to select a permalinks structure that you don’t want, then select the one you do want.  That will, again, force it to regenerate itself to the proper permalink structure.  Sometimes, that’s actually all you do need to do, the switching to something else and back again is enough to make permalinks act properly.

So, that’s pretty much it, it works 98% of the time.

 

You Might Also Like

No Comments

Leave a Reply