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 |