Phpcms v9 Pseudo-static rule Iis/apache configuration method

Source: Internet
Author: User

Phpcms v9 pseudo static rule win under IIS

Create a new Notepad file and change the file name to: Httpd.ini. Then paste the following code in.

The code is as follows Copy Code

[Isapi_rewrite]

# 3600 = 1 hour

Cacheclockrate 3600

Repeatlimit 32

Rewriteengine on

Rewriterule ^ (. *) content-([0-9]+)-([0-9]+)-([0-9]+). html$ $1/index.php?m=content&c=index&a=show& Catid=$2&id=$3&page=$4

Rewriterule ^ (. *) show-([0-9]+)-([0-9]+)-([0-9]+). html$ $1/index.php?m=content&c=index&a=show&catid=$ 2&id=$3&page=$4

Rewriterule ^ (. *) list-([0-9]+)-([0-9]+). html$ $1/index.php?m=content&c=index&a=lists&catid=$2& Page=$3


Apache Configuration

#PHPCMS V9 pseudo static rule:

The code is as follows Copy Code

Rewriteengine on
Rewriterule ^content-([0-9]+)-([0-9]+)-([0-9]+). HTML index.php?m=content&c=index&a=show&catid=$1 &id=$2&page=$3
Rewriterule ^show-([0-9]+)-([0-9]+)-([0-9]+). HTML Index.php?m=content&c=index&a=show&catid=$1&id =$2&page=$3
Rewriterule ^list-([0-9]+)-([0-9]+). HTML index.php?m=content&c=index&a=lists&catid=$1&page=$2

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.