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!

link|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
feedback

1 Answer

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

I hope that will help ;)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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