php - htaccess redirect add querystring -



i'm triying redirect www.myweb.com www.myweb.com/?lang=en
try made redirect traffic in website or creates loop.
help?

i thinkg should easier set variable lang 'en' in php, rather redirecting... in code, before handling lang variable, try:

if (!isset($_get['lang'])) {     $_get['lang'] = 'en; } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -