ASP dynamic page static

xiaoxiao2021-03-19  218

Isapi_rewrite is a powerful URL processing engine based on regular expression. It is very similar to Apache's Mod_rewrite, which is designed for IIS, and the filtered URL is more in line with the friendly URL rules, which is more easily accepted by the search engine, which is a SEO optimized method.

Of course, you have to have a server (configured server IIS permission), downloaded here: http://www.isapi_rwl_0055.msi then install, casually load, open the Internet information, right , Web Site Properties, Point ISAPI Filter tab. Add filter, name fill a ISAPI_rewrite, the path you specify ISAPI_rewrite.dll (under the root directory of the installation), then determine. Finally, start adding the Rewrite rules. Regular, find isapi_rewrite Directory, remove httpd.ini's read-only attribute, open editing.

Attach a few universal configuration regular expressions, the author trial:

Example: http://music.caiku.com http://flash.caiku.com

File name, parameter, parameter value is within 20 digits

A general expression: / (. {1, 20}) / (/ d {1, 20}) / (/ d {1, 20}) /. Html / $ $/.asp/? $2= $ 3

Two parameters universal expressions: / ([^ /] {1, 20}) / ([^ /] {1, 20}) / ([^ /] {1, 20}) / ([^ /] { 1, 20}) / ([^ /] {1, 20}) /. Html / $ 00/.asp/? $2= $ 3& $ 3= $4

Three parameters universal expressions: / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] { 0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) /. Html / full of $1/.asp/ $ 2 = $ 3 & $ 3 = $ 4 & $ 5 = $ 6

Four parameters Universal Expression: / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] { 0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) /. Html / $ 00/.aSP/? $2= $ 3/!

Five parameters universal expressions: / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] { 0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / ([^ /] {0, 20}) / (^ /] {0, 20}) /. Html / $1/.asp/? $ 2 = $ 3 & $ 3 = $ 4 & $ 5 = $ 6 & $ 7 = $ 8 & $ 9 = $ 10

According to my thoughts, the number of parameters taken after the ASP address is classified, so that it is more common, and others can, of course, can be given to the three, designing their own needs.

转载请注明原文地址:https://www.9cbs.com/read-130165.html

New Post(0)