Iis rewrite pseudo-static invalid Chinese characters I have summarized two solutions. One is to solve the problem by using the [NU] parameter in rewrite pseudo-static tasks, the other is the conversion of Chinese characters into urlencode, which I have mentioned before. The conversion does not contain Chinese characters, but the browser will automatically recognize Chinese characters and access them normally.
When processing a tag page today, the pseudo-static function is required. During rewrite
The reason is that the Chinese Unicode information will be ISAPI_Rewrite into the uft-8 format encoding, we only need to add the [NU] parameter after the corresponding pseudo static rules to prohibit the encoding conversion,
For example
| The Code is as follows: |
Copy code |
| RewriteRule ^/shop-(. * example .html $/shop. php? Nick = $1 [NU] |
In this way, Chinese characters are supported.
Note: The above method is useful in IIS and can be ignored in apache.
Method 2,This method can be used for iis pseudo-static and apache pseudo-static. This method is compatible with all server environments, as shown in figure
A. php? A = yijucheng
This may cause problems sometimes, but we can use the php urlencode () function for conversion.
A. php? A = urlenocde ('one-click tutorial net ');
Then on the acceptance page, you can directly $ _ GET ['a'] to solve the problem.