Jul 182012
 
Article WordPress

In a new default wordpress installation, the url to access a given post only has an argument to identify the post by the numeric id. For instance, http://blog-en.openalfa.com/?p=31

It is much better to use a descriptive url, containing the title of the post. This post, for instance, can be accessed with the url:

http://blog-en.openalfa.com/how-to-set-the-url-of-a-wordpress-post-to-the-post-title

Achieving this in wordpress is easy. From the administration home page of our wordpress installation, go to “Settings->Permalinks”. The configuration page that shows is like this:

Permalinks setup

Permalinks setup form

In the configuration page, we can select the predefined option “Post name” to set the url as the post title, or else select “Custom Structure”, and specify the desired url structure by means of tags. In the above example image, the custom structure is simply “/%postname%/”, resulting in the same type of url as the “Postname” standard option.

 Posted by at 12:05 pm

 Leave a Reply

(required)

(required)