简体   繁体   中英

Umlauts in htaccess redirects

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?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM