Welcome to WebmasterWorld Guest from 54.242.94.72

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite umlauts

mod_rewrite rewrite engine umlauts conversion

     

ternur

10:55 am on May 26, 2008 (gmt 0)

5+ Year Member



Hi,
I'd like to convert urls from [localhost...] to [localhost...]

In other words, how can i convert umlauts (äöåÅÄÖ) to their a-z subsitutes?

Can someone specify the Apache Rewrite rule for this?

tomda

11:07 am on May 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can always read this [webmasterworld.com...] from jdMorgan...

Flag it and go through it !

ternur

11:46 am on May 26, 2008 (gmt 0)

5+ Year Member



Thanks but still couldn't find a suitable answer from the massive thread you gave me. I just need an explicit answer in the form of .htaccess, please.

ternur

12:34 pm on May 26, 2008 (gmt 0)

5+ Year Member



Do you think RewriteMap is the key for umlaut conversions?

[edited by: jdMorgan at 6:59 pm (utc) on May 26, 2008]

tomda

1:06 pm on May 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Whooo whoo !

The thread I gave you has all the answers you are looking for...

For your information, using htaccess is not recommended for newbies, specially if just want to a cut and paste. It is a must you go through the all jdMorgan's post !

Sorry, I can't help you... Everything is there, use the "Uppercase to lowercase conversion plug-in" then do a simple and basic redirect.

Sweet... Thanks jdMorgan for this great thread !

jdMorgan

7:07 pm on May 26, 2008 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



> Do you think RewriteMap is the key for umlaut conversions?

Yes, this problem is more complicated than the relatively-simple uppercase-to-lowercase translation implemented in the cited thread. Also, the solution in that thread was intended for use in .htaccess, and is quite inefficient compared to methods available at the server config level -- i.e. RewriteMap.

I would suggest using RewriteMap to pass all requests with percent-encoded characters to a "translation" script (coded in PERL), which will then return the 7-bit ASCII (or UTF-8) character string to mod_rewrite.

In order to detect the percent-encoded characters, you'll likely need to use a RewriteCond to examine the server variable %{THE_REQUEST}, which will contain the (encoded) request exactly as sent by the client.

Please review our Apache forum Charter for references and information on how to get the most from this forum.

Thanks,
Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month