![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Aug 2009
Posts: 130
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Choice is an Illusion
Industry Role:
Join Date: Feb 2005
Location: Land of Obama
Posts: 42,635
|
![]() 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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
|
bump bump
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
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
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Oct 2009
Location: UK
Posts: 1,865
|
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]
__________________
Affiliate Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |