Hypertext Access file Rewriting and Redirecting Redirect with/without query params


Example

Redirect without query params:

RewriteRule ^route$ /new_route_without_query [L,R=301,QSD]

Redirect with query params:

RewriteCond %{QUERY_STRING} ^$
RewriteRule ^/?route$ %{REQUEST_URI}?query=param1&query2=param2 [NC,L,R=301]