.htaccess - htacces remove language parameter then redirect to browser's language -


sorry if duplicated, can't find solution.

my current url is: domain.com/index.php?lang=en want url looks this: domain.com/en if browser's language english, redirect english version.

i try this:

rewriteengine on rewriterule (.*) index.php?language=$1  rewritecond %{http:accept-language} (en) [nc] rewriterule .* /en [l] 

but doesn't work. please help.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -