PHPCMSv9 企业黄页 URL静态化  phpcms企业黄页伪静态规则
  
 
Apache Web Server:
.htaccess文件
 RewriteRule ^qiyetuiguang.html index.php?m=yp&c=index&a=init
 RewriteRule ^qiyetuiguang-([a-z]+)-([0-9]+).html index.php?m=yp&c=index&a=model&modelid=$2
 RewriteRule ^qiyetuiguang-list-([0-9]+)-(.*)-(.*)-(.*)-(.*)-([0-9]+).html   index.php?m=yp&c=index&a=lists&modelid=$1&areaid=$2&catid=$3&price=$4&page=$5
 RewriteRule ^qiyetuiguang-list-([0-9]+)-(.*)-(.*)-(.*)-(.*)-(.*)-([0-9]+).html   index.php?m=yp&c=index&a=lists&modelid=$1&areaid=$2&catid=$3&price=$4&tid=$5&page=$6
 RewriteRule ^qiyetuiguang-show-([0-9]+)-([0-9]+).html index.php?m=yp&c=index&a=show&catid=$1&id=$2
 
 RewriteRule ^web-([0-9]+).html index.php?m=yp&c=com_index&a=init&userid=$1
 RewriteRule ^web-(.*)-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*).html index.php?m=yp&c=com_index&a=$1&modelid=$2&catid=$3&id=$4&userid=$5&page=$6
 RewriteRule ^web-(.*)-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*)-([0-9]*).html index.php?m=yp&c=com_index&a=$1&modelid=$2&catid=$3&id=$4&tid=$5&userid=$6&page=$7
RewriteRule ^qiyetuiguang-company-1.html index.php?m=yp&c=index&a=company
IIS Web Server:
httpd.ini文件
  RewriteEngine on
 RewriteRule ^(.*)/qiyetuiguang\.html\?*(.*)$ $1/index\.php\?m=yp&c=index&a=init
 RewriteRule ^(.*)/qiyetuiguang\-([a-z]+)\-([0-9]+)\.html\?*(.*)$ $1/index\.php\?m=yp&c=index&a=model&modelid=$3
 RewriteRule ^(.*)/qiyetuiguang\-list\-([0-9]+)\-(.*)\-(.*)\-(.*)\-(.*)\-([0-9]+)\.html\?*(.*)$   $1/index\.php\?m=yp&c=index&a=lists&modelid=$2&areaid=$3&catid=$4&price=$5&page=$5
 RewriteRule ^(.*)/qiyetuiguang\-list\-([0-9]+)\-(.*)\-(.*)\-(.*)\-(.*)\-(.*)\-([0-9]+)\.html\?*(.*)$   $1/index\.php\?m=yp&c=index&a=lists&modelid=$2&areaid=$3&catid=$4&price=$5&tid=$6&page=$6
 RewriteRule ^(.*)/qiyetuiguang\-show\-([0-9]+)\-([0-9]+)\.html\?*(.*)$ $1/index\.php\?m=yp&c=index&a=show&catid=$2&id=$3
 RewriteRule ^(.*)/web\-([0-9]+)\.html\?*(.*)$ $1/index\.php\?m=yp&c=com_index&a=init&userid=$2
 RewriteRule ^(.*)/web\-(.*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\.html\?*(.*)$ $1/index\.php\?m=yp&c=com_index&a=$2&modelid=$3&catid=$4&id=$5&userid=$6&page=$7
 RewriteRule ^(.*)/web\-(.*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\-([0-9]*)\.html\?*(.*)$ $1/index\.php\?m=yp&c=com_index&a=$2&modelid=$3&catid=$4&id=$5&tid=$6&userid=$7&page=$8
  
注意 该URL规则适用与apache,如果您的web服务器为IIS,Nginx等,可以根据该规则做适当修改即可。APACHE默认不支持9个以上rewrite参数,以上规则已经将yp改为qiyetuiguang,如果不知道改代码的可以将qiyetuiguang改回为yp
