I was up to remove the file name or extensions from my webpage address. There were some solutions for doing this (.htaccess) but my .htaccess file was empty. I wanna know that how can i do this? Turning this:
http://www.example.com/page.php
Into This:
http://www.example.com/page
Thanks for reading.
Assuming that the page.php does exist in your root folder, as a physical file, then you can use:
If page.php does not exists, but it is a product of a rewrite rule, you can use something like:
The two extra rules say something: if file in browser does not exist and it is not an existing folder, then proceed with the rewrite.
You will need to change your links in your site, for the above rules to work. Something like: