-3

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?

Suraj
  • 1
  • 1
  • Possible duplicate of [Remove .php extension with .htaccess](https://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess) – am05mhz Dec 16 '17 at 05:40

1 Answers1

-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