打开bin/apache/apache2.4.37/conf/httpd.conf
1、搜索“rewrite_module modules/mod_rewrite.so”, 去掉前面的#
2、找到“AllowOverride None”改为“AllowOverride All”
3、使用phpcms的.htaccess文件
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