homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
changed special characters in htaccess
do you know to rule?
rakkaus




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

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




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

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

bird




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

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

DaveAtIFG




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

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




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

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




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

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




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

[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




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved