My php project which is supported with javascript works in one index.php page. In this page, I get the id with url parameters such as index.php?id=3627
. Every id represents different sources, and everyone has specific tittle and embed code. In this case, I want to change the url structure with .htaccess and get the id in the same time. For example, index.php/i-need-to-put-title.html
should give me the id number for $_GET['id'] request. My brain is frozen and I drunk lot of coffee. How can I do that, I need suggestions and help.
NOTE: My question is not related with possible dublicate header. I don't need to write /id/3627, I have to convert it to /title-is-here.html which is not related with id. It more than how to use question. Thank you.