Re: URGENT: Space char in rewriterule
| From: | php/ml) | Date: | Tue, 27 Jul 2004 09:14:13 +0000 |
| Subject: | Re: URGENT: Space char in rewriterule | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191950@lists.php.net to get a copy of this message | ||
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE character and all SPACE characters (ord 32) are converted to %20 ... thus, space character in rewrite rule will lead to bogus URI... thus, browser will send %20 instead and... dunno if apache will convert it to " " before applying the regexp, but if not, this will lead into your problem. Couldn't you just avoid that space by encoding?
m.
Robert Winter wrote:
It didn't work. Still the same problem. Thanks "Marek Kilimajer" <lists@kilimajer.net> escribió en el mensaje news:410467A7.7050408@kilimajer.net...-- Miroslav Hudak developer & designer http://hudak.infoRobert Winter wrote:http://mysite.com/redirect.php?XXXI have the following rewriterule: RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L] that transforms http://mysite.com/XXX tohttp://mysite.com/redirect.php?ABand I need to also include to space char, for example that transforms http://mysite.com/AB XX toRewriteRuleXX I didn't find a way to write the " " characters. I tested with^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work. Thanks! RobDid you try RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1 ?