Dedecms tag pseudo-static iis_rewrite configuration method rewrite download

Source: Internet
Author: User

Method
1. Because there is no rewrite module like PHP, You need to download the IIS rewrite module:

Http://www.jb51.net/softs/6192.html
2. decompress the compressed package to any directory (for example, c: \ rewrite ). Then open "Control Panel"-"Administrative Tools"-"IIS Information Service Manager"-"website"-"Your Site
"-" Attribute ". Click "add" in the "ISAPI filter" item, and enter the Filter Name in rewrite. the executable file is c: \ rewrite. dll;

3. Modify the httpd. ini file and add the corresponding filter rules, for example:

Rewriterule ^ (. *)/([a-z0-9 \-\ _] +) $1/Default \. aspx \? Id = $2 [I, O]
Http: // localhost/text is equivalent to http: // localhost/default. aspx? Id = text

Rewriterule ^ (. *)/ID _ ([a-z0-9 \-] +) \. html $1/Default \. aspx \? Id = $2 [I, O]
Http: // localhost/id_text.html is equivalent to http: // localhost/default. aspx? Id = text

^ (. *)/Html/([0-9] +)/([0-9] +) \. html $1/Default \. aspx \? Id = $2 & name = $3
Http: // localhost/html/001/007 .html is equivalent to http: // localhost/default. aspx? Id = 001 & name = 007

Dede addition method (Note: Here is the regular expression method ):

Rewriterule ^ (. *)/Tag/(. +) $1/Tag \. php \? $2/
Rewriterule ^ (. *)/Tag/(. +) \. html $1/Tag \. php \? $2

4. Restart IIS to take effect. (This step is very important. Restart IIS to load the configuration every time httpd. INI is modified .)

5. Modify the Dede functions:

\ Include \ inc_arcpart_view.php
\ Include \ inc_channel_unit_functions.php
\ Include \ inc_pubtag_make.php
\ Include \ inc_taglist_view.php

That is, change all links to static addresses: tag. php? /-> Tag/

Then generate the relevant page.

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.