开发者

Issue with Japanese/International Characters with IIS7 URL Rewrite

I have a friend with a Japanese blog, using wordpress, he has the pretty url. Basically domain.com/postname. Well an example of a url might be. "domain.com/テスト". His blog is hosted on an Apache web server.

I am running IIS7 and am trying to get my Japanese blog going like it should, and have "domain.com/テスト" show just that one post when you visit that url. My thinking is it has something to do with url-encoding. I can't find too much information on utf-8 or anything about getting international characters to work in a url.

Any help on this would be great. I am thinking I should change something in the web.confi开发者_如何学JAVAg file, but not to sure. I haven't had a lot of experience with IIS7.

Thanks.


This was pulled off of forum post linked to above.

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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜