How To: Wordpress Pretty Permalinks

Bye Bye “Almost Pretty” Permalinks!

Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. “Pretty” Permalinks is the idea that URLs are frequently visible to the people who click them, and should therefore be crafted in such a way that they make sense, and not be filled with incomprehensible parameters.

After too much googling, I finally got pretty permalinks working in wordpress. Turns out the mod_rewrite module must be enabled in apache. How is this done in CentOS?

Simply edit your httpd.conf file which is usually found in


by changing

AllowOveride None


AllowOveride All

under the section beginning with:

DocumentRoot “/var/www/html”

Once done regenerate your .htaccess file by saving your desired permalink setting in Settings->Permalinks in your wordpress dashboard. Now your permalinks should be working!

It is assumed that the mod_rewrite module is loaded in apache which was done by default for me and that RewriteEngine On was included in your .htaccess file.