Page 1 of 1

reguller express sapce issue

Posted: Thu Dec 14, 2006 9:02 am
by itsmani1
here is is my expression:

Code: Select all

RewriteRule ^cityguides/([A-Z]+)/([a-z]+)/ citytickets.php [nc]
its working for :
/cityguides/NY/yaosadf/
/cityguides/NY/yaosadf/
etc and things like this


but its not working for:
/cityguides/NY/New%20York/

any help

thanks

Posted: Thu Dec 14, 2006 9:31 am
by feyd
What have you tried?

Posted: Thu Dec 14, 2006 9:59 am
by pickle
Your pattern requires that the last directory only be named with lowercase letters. %, 2, and 0 obviously don't fit in that class.

Posted: Thu Dec 14, 2006 10:05 am
by itsmani1
pickle wrote:Your pattern requires that the last directory only be named with lowercase letters. %, 2, and 0 obviously don't fit in that class.
yes, but i don't know how to fit % 2 0 in it.

i tried :

Code: Select all

RewriteRule ^cityguides/([A-Z]+)/([a-z]+)([%20]*)([a-z]*)/ citytickets.php [nc]

Posted: Thu Dec 14, 2006 10:09 am
by pickle
Untested:

Code: Select all

RewriteRule ^cityguides/([A-Z]+)/([a-zA-Z%20]+)/ citytickets.php [nc]

Posted: Thu Dec 14, 2006 10:28 am
by itsmani1
works fine for : /cityguides/FL/Miami/
but for /cityguides/FL/New%20York/
says
The requested URL /cityguides/NY/New York/ was not found on this server.

Posted: Thu Dec 14, 2006 10:38 am
by feyd
That's not including a space. %20 is the escaped form of a space, but your request is using an actual space.

Posted: Fri Dec 15, 2006 3:35 am
by itsmani1
but i am trying with %20 and its not working.