Japanese / international character issue with IIS7 url rewriting

I have a friend with a Japanese blog using wordpress, he has a cute url. Mostly domain.com/postname. Well for example an example url. "Domain.com/ テ ス ト". His blog is hosted on the Apache web server.

I am running IIS7 and am trying to make my Japanese blog work as it should and "domain.com/ テ ス ト" only shows one message when you visit that url. I think it has something to do with url encoding. I can't find too much information on utf-8 or how to get international characters to work in a URL.

Any help on this would be great. I think I should change something in the web.config file but not sure. I didn't have much experience with IIS7.

Thank.

+2


source to share


1 answer


This was pulled from the forum post linked above.

Try adding the following code at the beginning of your wp-config.php file:



if ( isset($_SERVER['UNENCODED_URL']) ) {
$_SERVER['REQUEST_URI'] = $_SERVER['UNENCODED_URL'];}

      

+7


source







All Articles