Re: encrypted urls, mcrypt and mod_rewrite

From: Date: Thu, 23 Feb 2006 11:46:02 +0000
Subject: Re: encrypted urls, mcrypt and mod_rewrite
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230948@lists.php.net to get a copy of this message
Ahh thanks heaps, its working more nicely However, trying to add more data into the encrypted string which is then base64_encoded I get a slash in the string which is breaking the rewriterule like the other cases. UmFuZG9tSVYljfOW15UlfzVJV8zBtaEXPh0mPku64cowVrHo%2Fgno9LeTfwejwsmG The requested URL /feeds/UmFuZG9tSVYljfOW15UlfzVJV8zBtaEXPh0mPku64cowVrHo/gno9LeTfwejwsmG was not found on this server. The rewrite rule RewriteEngine On RewriteRule ^feeds/(.*)$ /refer.php?$1 [L,NE] On 23/02/2006, at 9:58 PM, Jared Williams wrote:
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#230948) next »