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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-26-2010, 08:25 AM   #1
rigo82
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
rigo82 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-26-2010, 08:46 AM   #2
Barefootsies
Choice is an Illusion
 
Barefootsies's Avatar
 
Industry Role:
Join Date: Feb 2005
Location: Land of Obama
Posts: 42,635
:2cents

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.
__________________
Should You Email Your Members?

Link1 | Link2 | Link3

Enough Said.

"Would you rather live like a king for a year or like a prince forever?"
Barefootsies is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-26-2010, 08:49 AM   #3
LoveSandra
So Fucking Banned
 
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
bump bump
LoveSandra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-26-2010, 09:47 AM   #4
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
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
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-26-2010, 12:21 PM   #5
Wilsy
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

Last edited by Wilsy; 05-26-2010 at 12:22 PM..
Wilsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.