I just want to ask help if how to do this in .htaccess
sample: https://sample.com/index.php?url=testimonials redirects to https://sample.com/testimonials
my htaccess rules:
Options -MultiViews
RewriteEngine On
RewriteRule ^home$ https://sample.com/ [R=301,L]
RewriteRule ^url=testimonials$ https://sample.com/testimonials/ [R=301,L]
RewriteRule ^error$ https://sample.com/ [R=301,L]
RewriteRule ^1$ https://sample.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]