RE: [PHP] encrypted urls, mcrypt and mod_rewrite
| From: | Jared Williams | Date: | Thu, 23 Feb 2006 10:58:39 +0000 |
| Subject: | RE: [PHP] encrypted urls, mcrypt and mod_rewrite | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230947@lists.php.net to get a copy of this message | ||
> Subject: Re: [PHP] encrypted urls, mcrypt and mod_rewrite
>
> Somehow this part of the string is a problem, it has
> underscores, but there is probably other things in this.
>
> _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ
I'd base64 encode that first then urlencode :)
>
> On 23/02/2006, at 6:01 PM, Dan Rossi wrote:
>
> > Hi ive been trying to find answers with no luck. I am sending a
> > urlencoded encrypted string made with mcrypt. what is happening is
> > there is somehow special characters that mod_rewrite doesnt
> like so it
> > wont find a regex match properly with this rule
> >
> > RewriteRule ^feeds/(.*)$ refer.php?$1 [L,QSA]
> >
> > Any ideas what it could be doing ? The strings are also
> quite random,
> > so it will work sometimes for a particular url then other
> times not ?
>
Jared