problem in clean url pattern ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

problem in clean url pattern ??

Post by PHPycho »

Hello forums!!

I would like to know, how to handle the '/' as params in clean urls.
The url pattern is like:

Code: Select all

http://localhost/mysite/mycontroller/my ... /key2/val2 ...
Suppose the case:

Code: Select all

key1 = filepath
val1 = uploads/docs/abc.doc
So in this case the clean url pattern which is separated by / will be violated.

So i would like to know how to use param values with '/' so as to preserve the pattern.

Thanks in advance for the valueable suggstions.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: problem in clean url pattern ??

Post by Christopher »

Usually the rewrite rule excludes URLs that end with a file extension. So your second example would not be rewritten.
(#10850)
Post Reply