Dedecms tag pseudo static Iis_rewrite configuration method attached rewrite download _dedecms

Source: Internet
Author: User
Tags ini
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, extract the compressed package to any directory, (such as: C:\Rewrite). Then open Control Panel-Administrative Tools-IIS Information Services Manager-Web site-Your site
"-Properties". In the ISAPI filter entry, click Add, the filter name is filled in Rewrite, and the executable file is C:\Rewrite\Rewrite.dll;

3, and then modify the Httpd.ini file, add the appropriate filtering rules, such as:

Rewriterule ^ (. *)/([a-z0-9\-\_]+) $ $1/default\.aspx\?id=$2 [I,o]
Http://localhost/Text will be equated 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 will be equated 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 Add method (Note: This is the regular way):

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

4. Restarting IIS can take effect (this step is important to restart IIS to load the configuration every time you modify Httpd.ini.) )

5, then modify the Dede correlation function:

\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 address: tag.php?/->tag/

And then generate the relevant page on it.

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.