Hi, A little help from Apache gurus here would be much appreciated. My CMS produces URL-s like mydomain.com/?lang=1 mydomain.com/index.php?lang=1 myaliasdomain.com/?lang=1 myaliasdomain.com/index.php?lang=1 I need to forward all of them to homepage mydomain.com/ My .htaccess includes following code RewriteCond %{THE_REQUEST} lang=1 RewriteRule . http: // www. mydomain. com? [R=301,L] it works perfectly for mydomain.com/index.php?lang=1 myaliasdomain.com/index.php?lang=1 but does not redirect URL without index.php in it. What code should I use to redirect mydomain.com/?lang=1 and myaliasdomain.com/?lang=1? Thanks a lot!
Tried many RewriteCond and RewriteRule variations but still didn`t find solution that works. If anyone knows how to redirect mydomain.com/?lang=1 to mydomain.com/ any help would be much appreciated. Thanks!