I'm triying to redirect www.myweb.com to www.myweb.com/?lang=en
Any try i made redirect all the traffic in the website or creates a loop.
Any help?
-
could you update your question with the relevant content of your .htaccess file please :)Christopher– Christopher2011-04-12 08:49:02 +00:00Commented Apr 12, 2011 at 8:49
Add a comment
|
2 Answers
If you need to do it via a rewrite rule for whatever reason, this worked for the simple example I tried:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ $1?lang=en [QSA]
Though there are similar questions on stack overflow you should check out: ModRewite and general searching ;)