| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member | 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! |
| |
| | #7 (permalink) | |
| Senior Member | Quote:
| |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |