Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are using Apache 1.3.19 and have started our first foray into mod-rewrite.

We would like to convert a URL structured like so:

http://somesite.com/us/en/bc/somePage.jsp

to:

http://somesite.com/bc/somePage.jsp?isoCountryCode=us&isoLanguageCode=en

Unfortunately we have run into a brick wall. Any help would be greatly appreciated!

share|improve this question
2  
See ref. The 1.3 version of the Apache HTTP Server, which is no longer maintained, and has been declared "end of life". It really is time to upgrade. –  Zoredache Oct 6 '10 at 19:19

1 Answer 1

RewriteEngine on
RewriteRule ^([_A-Za-z-]+)/([_A-Za-z-]+)/([_A-Za-z-]+)/(.*)$ $3/$4?isoCountryCode=$1&isoLanguageCode=$2

I hope that will help ;)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.