I have this URL
http://localhost:8888/dochealth/child-doc?cat=doctor
and wanted to replace it with .htaccess REGEX So it becomes
http://localhost:8888/dochealth/child-doc/doctor
so far I have tried this REGEX but it doesn't work
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteRule ^child-doc/([0-9a-zA-Z_-]+) child-doc?cat=$1 [NC,L]
</IfModule>