append string to URL via .htaccess and RewriteRule

Discussion in 'Apache' started by clarky_27, Mar 8, 2011.

  1. #1
    Hello,

    I want to add this string to every URL on my server: "?language=en" (without quotes).

    for instance: when someone goes to www.mypage.com/page.php it should rewrite automagically the URL to www.mypage.com/page.php?language=en

    I was doing fine with this .htaccess configuration, but suddentely stopped working:

    
    RewriteEngine On
    RewriteRule ^$ ?language=en [QSA,L]
    
    Code (markup):


    Can someone help ?
    Thanks !
     
    clarky_27, Mar 8, 2011 IP