GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need htaccess help (https://gfy.com/showthread.php?t=970234)

rigo82 05-26-2010 08:25 AM

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

Barefootsies 05-26-2010 08:46 AM

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.

LoveSandra 05-26-2010 08:49 AM

bump bump

GrouchyAdmin 05-26-2010 09:47 AM

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

Wilsy 05-26-2010 12:21 PM

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