wordpress friendly URLs

In the basic settings wordpress does not have a very good URL structure. Your first posts URL will most probably look like this :


The above number 15 (the post ID) does not mean anything to your users and it does not contain any keywords that could be found by a search engine.

Change WordPress Permalink Settings

To improve this – go to your admin section and select “Settings / Permalinks” and choose the “Custom Structure” radio button:


Now your links will be displayed like this:


Set up Web-server rewriting

If you click on the new link it might not directly work as expected. Depending on your web-server configuration, you might need to set up a rewriting rule in your web-server. If you are using an apache web-server put the following snippet in the relevant virtual host configuration file and reload the config:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]