IIS rewrite pseudo-static Chinese invalid problem solving method

Source: Internet
Author: User

Today in the process of a tag page. Because of the need to use pseudo static functionality. In the rewrite,

The reason is that the Chinese Unicode information will be isapi_rewrite into uft-8 format encoding we only need to add [NU] parameters to the corresponding pseudo static rules to prohibit the encoding conversion.

For example

The code is as follows Copy Code
Rewriterule ^/shop-(. *). html$/shop.php?nick=$1 [NU]

This will support the Chinese language. Write it down to facilitate later use.

Note: The above methods are useful under IIS. You can ignore it under Apache.

method Two, this method can be used for IIS pseudo static and Apache pseudo static Oh, this processing is compatible with all server environments, such as

A.php?a= Cloud Habitat Community Network

This is sometimes problematic, but we can use the PHP urlencode () function to convert

A.PHP?A=URLENOCDE (' cloud-dwelling Community network ');

Then in the Accept page directly $_get[' A ' can be solved oh.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.