|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a rewrite rule:
RewriteRule ^search/(.*)$ search.php?q=$1 However, if i request http://server/search/ben%26jerry , it doesn't return http://server/search.php?q=ben%26jerry, but rather http://server/search.php?q=ben&jerry Can anyone please me to solve this problem? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"sleek" <cslush@gmail.com> wrote in message news:1178803314.738994.18620@e51g2000hsg.googlegro ups.com... >I have a rewrite rule: > > RewriteRule ^search/(.*)$ search.php?q=$1 > > However, if i request http://server/search/ben%26jerry , it doesn't > return http://server/search.php?q=ben%26jerry, but rather > http://server/search.php?q=ben&jerry > > Can anyone please me to solve this problem? > I believe there is a flag for this, http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html 'noescape|NE' (no URI escaping of output) This flag keeps mod_rewrite from applying the usual URI escaping rules to the result of a rewrite. Ordinarily, special characters (such as '%', '$', ';', and so on) will be escaped into their hexcode equivalents ('%25', '%24', and '%3B', respectively); this flag prevents this from being done. This allows percent symbols to appear in the output, as in Jon |
|
![]() |
| Outils de la discussion | |
|
|