![]() |
need htaccess help
Hello
I need to rewrite ?lang=en with /en/ and also keep the posibility of using $_GET[lang]. How do i do that? I must emphasize that i want to use it on different URIs, for exemple i have links looking like: www.mydomain.com/category/amateurs?lang=en www.mydomain.com/blahblah.html?lang=en www.mydomain.com/list.php?tag=blahblah&lang=en Thanks |
You may wanna hit up one of the board's programmers directly and see if you can get them to help you. Seems fairly simple for someone who knows what they are doing.
|
bump bump
|
Look into QSA for mod_rewrite to pass through and E= to set an enviornmental var. Not sure why you'd use a GET request over parsing HTTP_ACCEPT_LANGUAGE
|
Edit and put this in your .htaccess file
RewriteRule ^([a-zA-Z0-9]+)/$ yourpage.php?lang=$1 [L] works like yoursite.com/[lang]/ You can do it like this and all vars will be passed allong too RewriteRule ^([a-zA-Z0-9]+)/$ yourpage.php?lang=$1%{QUERY_STRING} [L] |
All times are GMT -7. The time now is 10:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123