Forum Moderators: phranque
I´m getting creazy....
trying for hours to find out what kind of input the .htaccess needs to bring following output: %2f
sorry for some german phrases, but you will understand it:-9
Input Output
ä wird zu ä
ö wird zu ö
ü wird zu Ã
Ü wird zu Ü
Ä wird zu Ä
Ö wird zu Ö
ß wird zu ß
and so on...
just wonna get: %2f
some of trials-and-errors:
%2%%22f wird zu %252f
%%22f wird zu %252f
%%25%22f wird zu %2552f
%%225%22f wird zu 252f
%%%22f wird zu %25%252f
%25%22f wird zu 52f
%2%f wird zu %25f
%%2%f wird zu %25%25f
%252f wird zu 52f
%22f wird zu 2f
%%2%22f wird zu %252f
%2%%225%22f wird zu %25252f
thx
I will be so happy!!!
thx
katinka
well, if someone comes to the domain income.com to should be redirected to the domain [outgoing.net...]
and my prob is now that if I write %26 into the htaccess-file I don´t get %26 but 6 only...
In my first posting I have written most of my test...
input is what I have written in the htaccess-file and output is the string which is tried to be opened in the browser...
"wird zu" -soorry German---"is changed to"
thx
thx
rakkaus
A redirect for your example might look something like:
RewriteEngine on
RewriteRule ^income\.com$ [outgoing.net...]
I've never used it but your "wird zu" (meaning "is changed to") looks as if it's intended to operate on a character by character basis. In other words:
Input Output
? wird zu %
? wird zu 2
? wird zu f
I suspect you'll require 3 characters of input to correspond to the output you want.
RewriteRule
...
[flags]
- ...
- '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 inRewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE]
which would turn '/foo/zed' into a safe request for '/bar?arg=P1=zed'.Notice: The noescape flag is only available with Apache 1.3.20 and later versions.
- ...
Thx to bird!!!!
I have read the mod-rewrite before..but as it seems not exact enough:-(((
I will try the "\" (as I used it before in front of a "." and so on)
thx a lot!
rakkaus