If you go to this site https://taxibeat.com/blog/ you will see that the read more links are user-friendly.That is wordpress doing all the job there.
Since though I do not use Wpress I am trying to achieve the same end result.
So the question is from where to begin.
I know and have read about .htaccess and mod_rewrite but I do not know if this is the solution for this case.
Besides having a friendly URL like in the site you see another question is based on what info database queries will be performed.
There would need to be something in the url which uniquely identifies that blog entry. The title may identify it, but you would then need some kind of look-up to associate the title with the id.
Alternatively, you maybe could use the title as the key to pull the entry from the database.
I think the easiest way is to combine the title and id, something like www.domain.com/5-blogtitle that would give a more meaningful url which includes the title, but also includes the id for the purpose of pulling the data from the database.
That function does the following :
You click on a link that sends you to the following url “http://localhost/THE-URL-YOU-WANT-TO-SEE”.
The router knows the link if you set it up and will show the file that it needs to show.
(blog_show.php)
So the map function works like this :
$router->map(
"TYPE: GET/POST OR GET|POST",
"url that you want to be able to use",
"class#method", // incase you use autoloading.
"route name"
)
Did you read through the docs and the closed issues on github ?
If not do that before you directly come back with a question.