Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
eldorado
Involved
Involved


Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Tue May 04, 2010 1:32 pm Reply with quote

Some neat trick I found on the net... I saw someone request a auto-language changer and i tried implementing it in htaccess for easier use

I wonder if that would work, or would it parse newlang='' and redirect to the index?

Code:
RewriteRule ^(.*)-fr$ http://yoursite.com/index.php?$1&newlang=french  [R,NC]

RewriteRule ^(.*)-de$ http://yoursite.com/index.php?$1&newlang=german [R,NC]
RewriteRule ^(.*)-es$ http://yoursite.com/index.php?$1&newlang=spanish [R,NC]
RewriteRule ^(.*)-it$ http://yoursite.com/index.php?$1&newlang=italian [R,NC]
RewriteRule ^(.*)-pt$ http://yoursite.com/index.php?$1&newlang=pt [R,NC]


edit: I couldn't remember where it was and what was the title so i posted a new sbubject.

_________________
Only registered users can see links on this board! Get registered or login! (My RN site)- Only registered users can see links on this board! Get registered or login!(cod4 clan) - Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©