How can I hide the file\'s extension and the GET variables via .htaccess in one line?
This code doesn\'t work:
... RewriteRule ^(.*)$ $1.php [L] RewriteR
This is a better for static pages. You only need to change "index" as your file and change get element according to yours. In example, there is "id" element.
RewriteEngine On RewriteRule ^((?:[a-zA-Z0-9_-]|%20)+)/?$ index.php?id=$1