Creating WordPress Pretty Links

I’m looking at the documentation of WordPress Permalinks, more specifically, their “Pretty Permalinks“. What makes this hard is that I can’t easily find where they explain the instructions for creating the category/pagename link structure: site.com/category/post-name.html instructions.

What you need to use and seems obvious now is %category%. You’ll need to visit:

‘Options’ => ‘Permalinks’ => ‘Custom’

Insert this in the field:

/%postname%/

This will updated your .htaccess file to read:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

That’s it. Your WordPress links should now look like yoursite.com/post-name.html.

Post written by Ed Reckers

Founder and lead web development consultant at Red Bridge Internet : San Francisco WordPress Developers and Consultants.

Leave a Reply