虽然说个人不怎么喜欢appcms,因为自己没能通过这个系统建设个好的站点,但从很多手赚网站点来看,appcms系统还是非常受欢迎的。只可惜appcms的官方网站和论坛都关闭了,程序源码只能从网上下载了。网友关于appcms的问题贴还是比较少的,很多网友遇到问题也只能自己去解决,对于一些新手朋友们来说特别头痛。拿appcms伪静态来说吧,很多人都不会操作,导致网站一直打不开。

如果是安装的服务器环境是apache的,一般安装好appcms系统后,在程序的后台开启伪静态就可以自动生在.htaccess的文件,无需手动设置。如下图

appcms伪静态设置,保存备用,支持nginx系统环境 第1张

如果你是nginx系统环境的,就需要自己手动在网站服务器里进行设置了。目前比较流行的建站面板就是宝塔面板,还是挺好用的。

伪静态规则如下:

rewrite ^/app/list_(\d+)_(\d+)\.html$ /index.php?tpl=list_app&cid=$1&p=$2;

rewrite ^/app/list_(\d+)\.html$ /index.php?tpl=list_app&cid=$1&p=1;

rewrite ^/app/(\w+?)/(\d+)\.html$ /index.php?tpl=list_app&cpy=$1&p=$2;

rewrite ^/app/(\w+?)/$ /index.php?tpl=list_app&cpy=$1&p=1;

rewrite ^/sepcial/list_(\d+)\.html$ /index.php?tpl=special_list&p=$1;

rewrite ^/sepcial/$ /index.php?tpl=special_list&p=1;

rewrite ^/special/(\d+)\.html$ /index.php?tpl=special_content&id=$1;

rewrite ^/info/list_(\d+)_(\d+)\.html$ /index.php?tpl=list_info&cid=$1&p=$2;

rewrite ^/info/list_(\d+)\.html$ /index.php?tpl=list_info&cid=$1&p=1;

rewrite ^/info/(\w+?)/(\d+)\.html$ /index.php?tpl=list_info&cpy=$1&p=$2;

rewrite ^/info/(\w+?)/$ /index.php?tpl=list_info&cpy=$1&p=1;

rewrite ^/info/(\d+)\.html$ /index.php?tpl=content_info&id=$1;

rewrite ^/app/(\d+)\.html$ /index.php?tpl=content_app&id=$1;

rewrite ^/app/(\w+)\.html$ /index.php?tpl=content_app&id=$1;

rewrite ^/app/(\d+)_(\d+)\.html$ /index.php?tpl=content_app_history&id=$1&hid=$2;

rewrite ^/lastupdate/(\d+)\.html$ /index.php?tpl=lastupdate&p=$1;

rewrite ^/lastupdate/$ /index.php?tpl=lastupdate&p=1;

rewrite ^/image/(.*).(\w+)$ /pic.php?url=$1&type=$2;