This is my working directory
das
|__views
|__admin
|__doctor
|__user
|__find-doctor.php
|__process.php
|__show-result.php
|__index.php(landing page)
|__index.php(routing)
|__.htaccess
The .htaccess I have right now is
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /das/index.php [L]
I need to modify the htaccess file to send query strings like
localhost/user?doctor-id=2
so that I can use the id from URL for querying database
In .htaccess
PHP
Example URL: https://example.com?user=doctor&id=who
get_param_one = doctor
get_param_two = who