I am storing my website's content in a database. It is like a CMS. One will add page content from an admin panel, and content will stored in the database.
In one page, I have added 10-12 links as <a href="page.php/abc" and my URLs looks like www.example.com/page.php/abc. I want to hide .php from page.php. How can I do this without using .htaccess?
I have tried with str_replace (added in page content from the CMS), but it seems like it does not recognise it as PHP code and take it as a string.