I am using .htaccess to redirect certain subfolders of my domain, to remove the question mark to improve my URLs.
.htaccess
Currently my URLs are like this:
If only changing from query is your requirement then try with below, we are using QSD flag to discard our query string after our rule matched.
RewriteCond %{QUERY_STRING} ([^\s&]+) [NC] RewriteRule ^ /post/%1 [R=302,L,NE,QSD]