I used this link I want to remove question mark & .php extension from the url using .htaccess to remove ".php" and "?id". But what to be done if i have "?another_id" in url?
Asked
Active
Viewed 113 times
1 Answers
-1
Put this code in your .htaccess file it will remove .php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

Rakesh Yadav
- 87
- 1
- 6