Skip to main content

Apache .htaccess config rule to redirect all requests to different domain (without query arguments).

RewriteEngine on
RewriteRule (.*) https://example.com/ [R=301,L]