Preview:
### Normal redirect from path to path ###

RewriteRule ^source/path$   /target/path [R=301,L]


### Redirect from query parameters ###

# For every path
RewriteCond %{QUERY_STRING} ^id=1&lang=de&newsid=30&subcat=8$
RewriteRule ^(.*)$   /target/path [R=301,L]

# Only for specific source path (here /index.php)
RewriteCond %{QUERY_STRING} ^lang=de&id=1$
RewriteRule ^index\.php$   /target/path [R=301,L]

# To purge the query parameters, add a ? at the end of the target path.
# The target path from the previous example would then be "/target/path?"
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter