View unanswered posts | View active topics It is currently Fri Dec 01, 2023 4:43 am

Reply to topic  [ 2 posts ] 
 Questionmark becomes %3f 
Author Message
Junior Member

Joined: Wed Jul 01, 2009 9:36 pm
Posts: 1
Post Questionmark becomes %3f
I'm writing a multilingual dictionary web app; trying to make a redirect such that when a user types in something like

it redirects him to

So right now my .htaccess file, stored in the "dictionary" folder, only has one line:

RedirectMatch ^/dictionary/([a-km-z])([a-z]*)(/)?$$1$2 [NE]

The [a-mk-z] is so that when you get redirected to dictionary/language, it doesn't trigger the same effect. None of my languages start with L, so it's really no problem.

It works fine except that it changes the language/?lang to language/%3flang, which of course means that the language name doesn't get passed to the script. Is there any way to fix this? I tried the [NE] tag, but as you can see, it didn't work.

Thanks in advance.

Wed Jul 01, 2009 9:47 pm
Report this post
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

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 post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.