My link is for another page news.php is :-
href="news?id=etc"
Here I remove .php
after news in href.
I use the below code in my .htaccess file for to remove .php extension:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
and after I click on the link, the URL will be like this after opening of page:
http://localhost/themobilesapp/news?id=15
but it automatically converted into:
http://localhost/themobilesapp/news/?id=15
it adds a slash(/) in the place of .php
after /news
Please help me to remove this slash(/)