This might be a duplicate, but I am having difficulties in finding a proper solution to solve my problem. I would like to accomplish the following:
STEP 1: Hide PHP extension for all my pages. And I managed to do that by having:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
STEP 2: Hide query string, meaning variables passed from another page. And this is the part I am missing.
From index I pass the following link:
setup?id=123
In my setup page, I do the $_GET['id'] to read the id attribute.
URL shows it as
http://subdomain.localhost:777/setup?id=123
So, everything works as expected.
My question now is how do I rework my httaccess so that it hides the ?id=123 part and shows it as:
http://subdomain.localhost:777/setup
Any help or guidance is highly appreciated.