URL redirection and pseudo-static html Solutions

Source: Internet
Author: User
To enhance URL friendliness and facilitate search engine indexing, many users now want to convert a long URL with a parameter program address into a short program or a static webpage URL address,

Method 1 (reprinted)
Show. aspx? Id = 3 & page = 4

Change
Show-3-4.aspx
Or
Show-3-4.html

By default, Asp.net does not take over HTML file requests. If you want to use the pseudo-static html webpage address, you must have the IIS management permission and hand over the HTML to Asp.net, or use the IIS Filter for redirection. We recommend that you select the latter because it is more efficient. The procedure is as follows:

/Files/smallmuda/urlrewriter.zip

Decompress the files in the package and configure rules in the iisurlrewriter. ini file. The default value is discuz! N Configuration, I'm lazy
Then add the IIS Filter

Address: http://nt.discuz.net/doc/setup/urlrewriter.htm

Method 2: Use Microsoft's urlrewriter and search for the content by yourself. Microsoft has the source code, but this jump must be An ASPX file. If you want to use HTM or
To redirect a directory name, Asp.net must take over all URL Processing. In this way, you can add a wildcard application ing in IIS


Select or enter c: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ aspnet_isapi.dll
Cancel the check before "check whether the file exists.
OK

After testing, the efficiency is greatly affected. Therefore, it is recommended to use method 1, which is simple, convenient, and efficient.

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.