I'm trying to achieve this in Codeigniter. I have got a URL like below
https://www.example.com/5474/my-first-post
I'll be processing this URL using the id and get the blog content from this id. but I don't want to show the ID in the URL.It should be like below.
https://www.example.com/my-first-post
I'm doing this because previously I was getting the blog content using the title. But that makes the website very slow when there are a lot of rows in the database (It takes around 5 seconds roughly on the local server).Where as I tried the same using the ID. I was getting the row from database using the ID. It takes very less time like say 0.0007 seconds. Any solution to this is highly appreciated.