Umlauts in htaccess redirects

.htaccess, apache, php, redirect

Solution

Try encoded URL instead: `/xyz/h%C3%A4ndedruck.html`

To get this string in PHP you can use the `urlencode` function.

There are also many websites that can do urlencoding for you. For example: http://meyerweb.com/eric/tools/dencoder/

Problem

The following htaccess rule doesn't work because of the umlauts. ``` Redirect 301 /xyz/händedruck.html /new/händedruck.html ``` How can this redirect be modified so that it works?

Original source