php - URL issue - passing encoded characters like %2f and %2b -
i passing encrypted value through url using .htaccess file shown below : url :
http://www.website.com/folder1/f1/tdt9eu%2b8kmae1u%2ft12rs htaccess file :
rewriterule ^f1/(.+)$ index.php?id=$1 [ne] the issue server respond requested url not found on server. when replace %2f / , %2b b s+ works , can see content of page.
it works when use url without rewriting shown below :
http://www.website.com/folder1/index.php?id=tdt9eu%2b8kmae1u%2ft12rs could please , how can modify htaccess make work ? because need content using url rewriting shown above
it due presence of %2f in uri not allowed apache web server default. allowed in query string that's why ?id=... working fine.
you need turn on allowencodedslashes directive in apache config this.
use:
allowencodedslashes on to allow encoded slash in uris , restart apache web server.
Comments
Post a Comment