I want to redirect all pages of
SiteA to homepage of
I used this code in SiteA's
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)$ https://SiteB.tld/ [R=301,L] </IfModule>
The code works perfectly, but not for URLs with
Question Mark, such as
This pages will get
404 Not Found and wouldn't redirect to SiteB's hompage.
What changes should I make in the Redirection code?