Welcome to WebmasterWorld Guest from 54.221.30.139

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

changed special characters in htaccess

do you know to rule?

     

rakkaus

5:12 pm on Jan 14, 2002 (gmt 0)

10+ Year Member



Hi!

Im 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

rakkaus

3:02 pm on Jan 16, 2002 (gmt 0)

10+ Year Member



Am I the only one with such a kind of prob?

bird

4:39 pm on Jan 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you give a little more context?
What exactly are you trying to do?

DaveAtIFG

4:44 pm on Jan 16, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi rakkaus, welcome to wmw! I, for one, don't understand your question or what you're trying to accomplish.

If you can translate the phrase "wird zu" perhaps it will help others recognize the directive and better understand your question.

rakkaus

2:33 pm on Jan 17, 2002 (gmt 0)

10+ Year Member



Sorry to write so unexactly!!!

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

DaveAtIFG

7:31 pm on Jan 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you simply need to redirect a visit from one URL to another, why not use mod_rewrite? Apache's docs are here [httpd.apache.org] and a discussion and examples are here [httpd.apache.org].

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.

bird

9:45 pm on Jan 18, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[httpd.apache.org...]

RewriteRule
...
[flags]

  • ...
  • 'noescapeNE'
    (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

    RewriteRule /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.

  • ...

rakkaus

8:30 am on Jan 21, 2002 (gmt 0)

10+ Year Member



Hi Dave! Hi Bird!

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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month