AK专用系统自带的伪静态规则是适用于Apache的,如果要在Nginx服务器下使用专用系统,请将以下伪静态规则复制到Nginx的配置中:
rewrite ^/$ /akcms_item.php?id=1 break;
rewrite ^/index-([0-9]+).html$ /akcms_item.php?id=1&page=$1 break;
rewrite ^/index.html$ /akcms_item.php?id=1 break;
rewrite ^/article/([0-9]+).html$ /akcms_item.php?id=$1 break;
rewrite ^/category/([0-9]+).html$ /akcms_category.php?id=1 break;
rewrite ^/category/([0-9]+)\-([0-9]+)\.html$ /akcms_category.php?id=$1&page=$2 break;
rewrite ^/rss.xml$ /akcms_item.php?id=2 break;
rewrite ^/tag/(.*)$ /search.php?keywords=$1 break;
rewrite ^/search/([0-9]+)/(.*)$ /search.php?page=$1&keywords=$2 break;