View unanswered posts | View active topics It is currently Sun Sep 24, 2017 4:09 pm



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

my-site.com/dictionary/french

it redirects him to

my-site.com/dictionary/language/?lang=french

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

Quote:
RedirectMatch ^/dictionary/([a-km-z])([a-z]*)(/)?$ http://www.my-site.com/dictionary/language/?lang=$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
Profile
Junior Member

Joined: Sun Sep 13, 2009 4:08 pm
Posts: 54
Location: United States Of America
Post 
Yeah, It's the computer's type of language to fill in something like a space or an underscore, it will create ?% or something like that. But when I look at your post again, I dun really understand how that happened

Quote:
RedirectMatch ^/dictionary/([a-km-z])([a-z]*)(/)?$ http://www.my-site.com/dictionary/language/?lang=$1$2 [NE]


Sun Sep 13, 2009 4:49 pm
Report this post
Profile
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:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.