如何转换包含帖子标题的基本php mysql博客网址

For example:

Currently my blog page url id: mydomain.com/index.php?id=2.

Instead of this I want it as mydomain.com/posttitle/ (similar to wordpress post url) as I am a new this.

You can use .htaccess file to eliminate index.php and rewrite URL to make it like wordpress URL.

You may get help from this link https://craftcms.com/support/remove-index.php