homepage Welcome to WebmasterWorld Guest from 54.226.252.142
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

    
Rewrite umlauts
mod_rewrite rewrite engine umlauts conversion
ternur




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

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




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

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

Flag it and go through it !

ternur




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

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




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

Do you think RewriteMap is the key for umlaut conversions?

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

tomda




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

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




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

> 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

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