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: 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