kingcms的.htaccess伪静态规则
2020-04-08
RewriteEngine On
RewriteBase /
#首页
RewriteRule ^$ index.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#列表页
#RewriteRule ^list((-[0-9]+)+).html$ index.php/list$1.html [L,NC]
RewriteRule ^list((-[0-9]+)+).html$ index.php/list$1.html [L,NC]
RewriteRule ^([a-zA-Z0-9-_/]*)/list((-[0-9]+)+).html$ index.php/list$2.html [L,NC]
#文章页
RewriteRule ^page((-[0-9]+)+).html$ index.php/page$1.html [L,NC]
RewriteRule ^([a-zA-Z0-9-_/]*)/page((-[0-9]+)+).html$ index.php/page$2.html [L,NC]
来源:http://www.kingcms.com/forums/Use/t20965/