In my index.php, I control which template to require according to the action parameter.
$action = isset( $_GET['action'] ) ? $_GET['action'] : "";
In my other page, I assign the action in the href.
<a href=".?action=post&postId=<?php echo $post->id?>">
When you hover the link, it will show you something like
...?action=post&postId=101
But I don't want to show it like that. Instead, I want to show it like
.../post/101
And in the href, I kinda use
<a href="./post/<?php echo $post->id?>">
My question is, how will then I be able to handle it in the index.php