Q:

Wordpress pass parameter into url

I need something like this example.com/postname/id/2 
I know that I can use example.com/postname?id=2 , but first example url is more friendly. 
Is this possible do with .htaccess ?

A:

In the admin panel:
Options > Permalinks > Common options > Choose the one you want

