I am completely new to .htaccess and tried to implement some examples from youtube and google but nothing really worked. I have a URL like
https://anything.org/XYZ/dashboard?personid=MjAwNDAwMjU0&role=Mw%3D%3D**
and I want something like
https://anything.org/XYZ/dashboard/personid/MjAwNDAwMjU0/role/Mw%3D%3D**
I tried a couple of solutions but did not work. Currently I am using this code to remove extension of the file
<IfModule mod_rewrite.c>
RewriteEngine On
#this will skip rewrite rules for POST requests
RewriteCond %{REQUEST_METHOD} POST
RewriteRule ^ - [L]
#used to remove .html extension from the file
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
#used to remove .php extension from the file
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
</IfModule>