I've been working on a CMS recently, and wanted to remove the .php add a trailing slash and remove query strings e.g. page.php?page=contact to page/contact
So far my .htaccess file looks like this:
# This is a .htaccess file
# Don't edit it.
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^GET\ /[^?\s]+\.php\?page=([^&\s]+)&?
RewriteRule (.*)\.php$ /$1/%1/? [L,R=301]
RewriteRule ^([^/]+)/([^/]+)/$ $1.php?page=$2 [QSA,L]
other then that, I can't figure out how to shorten the query string. I've looked around on and couldn't find any other questions specific to this...
Thank you in advance.