Pretty Permalinks
It took me almost 4 hours to figure this problem out, and all that was needed was a simple change to the config file for Apache.
Problem:
I wanted to change the permalink structure from the default setting under permalinks in Wordpress, /p=%postid% , to something more pleasing to the eyes. After changing the structure in the admin section I was able to see my Homepage, but every single link resulted in a 404. Eeek. So I changed it back to default and futzed around for a while looking around to see how other solved this issue. Most folks were concered about old links that reside on the web that won’t be resolvable after updating to a new permalink structure.
How I resolved it:
So I installed all these different plugins thinking that’s what I needed to get my links working, blah, the issue was with my Apache config and not an issue with the plugins or the theme I chose. When looking at the requirements to have “pretty permalinks” I had everything already set EXCEPT the directive for the following:
FileInfo directives allowed (e.g. AllowOverride FileInfo, AllowOverride All)
I went to my config file for my site, and updated AllowOverride None to AllowOverride FileInfo, restarted Apache using /etc/init.d/Apache2 restart and wala, all the previous posts, links, categories, and new posts work.
I did end up leaving the following plugin enabled to Redirect any pages that may have been linked from other sites so they can still resolve the pages using the old default ugly link structure:
Permalinks Migration Plugin for wordpress
Hopefully I can save someone out there a few hours of wasted time to try to get their pretty permalinks structure up and running.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
No comments yet.
Leave a comment