I want to redirect all pages of SiteA
to homepage of SiteB
.
I used this code in SiteA's .htaccess
file:
<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
https://SiteA.tld/?action=dayview&calendar=1&year=2000&month=01&day=01
This pages will get 404 Not Found
and wouldn't redirect to SiteB's hompage.
What changes should I make in the Redirection code?
QSD
flag has made everything OK. @DocRoot