Hi guys,
I need a little help from programming gurus here. 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 as well?
Thanks a lot!
I need a little help from programming gurus here. 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 as well?
Thanks a lot!






