Soy completamente nuevo en .htaccess e intenté implementar algunos ejemplos de youtube y google, pero nada funcionó realmente. tengo una url como
https://anything.org/XYZ/dashboard?personid=MjAwNDAwMjU0&role=Mw%3D%3D**y quiero algo como
https://anything.org/XYZ/dashboard/personid/MjAwNDAwMjU0/role/Mw%3D%3D**Probé un par de soluciones pero no funcionó. Actualmente estoy usando este código para eliminar la extensión del archivo.
<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>