我做了一个小说方舟网,用的杰奇系统,用的Linux系统环境,然后使用了nginx 作为应用服务器,转贴请说明来自
nginx 规则如下
rewrite ^/rewrite.html$ /index.php last;
rewrite ^/index.html$ /index.php last;
rewrite ^/book/([0-9]+).html$ /modules/article/articleinfo.php?id=$1 last;
rewrite ^/list/([0-9]+).html$ /modules/article/reader.php?aid=$1 last;
rewrite ^/bookreader/([0-9]+)-([0-9]+).html$ /modules/article/reader.php?aid=$1& cid=$2 last;
rewrite ^/catalog/([a-zA-Z0-9]+).html$ /modules/article/articlelist.php?class=$1 last;
rewrite ^/finish.html$ /modules/article/index.php?fullflag=1 last;
rewrite ^/serial.html$ /modules/article/index.php last;
rewrite ^/lastupdate.html$ /modules/article/toplist.php?sort=lastupdate last;
rewrite ^/allvisit.html$ /modules/article/toplist.php?sort=allvisit last;rewrite ^/sizes.html$ /modules/article/toplist.php?sort=size last;
#rewrite ^/serial.html$ /modules/article/index.php?fullflag=0 last;
#rewrite ^/full.html$ /modules/article/index.php?fullflag=1 last;
#rewrite ^/search.html$ /modules/article/search.php last;
#rewrite ^/book.html$ /modules/article/index.php last;
#rewrite ^/login.html$ /login.php last;
#rewrite ^/note.html$ /modules/note/index.php last;
#rewrite ^/vote.html$ /modules/vote/index.php last;
#rewrite ^/full.html$ /modules/article/index.php?fullflag=1 last;
#rewrite ^/serial.html$ /modules/article/index.php?fullflag=0 last;
#rewrite ^/initial/0.html$ /modules/article/index.php?initial=~ last;
#rewrite ^/initial/0-([0-9]+).html$ /modules/article/index.php?initial=~&page=$1 last;
#rewrite ^/initial/([1A-Z]).html$ /modules/article/articlelist.php?initial=$1pag e=$2 last;
#rewrite ^/initial/([1A-Z])-([0-9]+).html$ /modules/article/articlelist.php?init ial=$1&page=$2 last;
#rewrite ^/catalog/([0-9]+)-([0-9]+).html$ /modules/article/articlelist.php?clas s=$1&page=$2 last;
#rewrite ^/catalog/([0-9]+)/index.html$ /modules/article/articlelist.php?class=$ 1&page=$2 last;
#rewrite ^/catalog/-([0-9]+).html$ /modules/article/articlelist.php?class=$1&pag e=$2 last;
#rewrite ^/catalog/-([0-9]+).html$ /modules/article/articlelist.php?class=$1&pag e=$2 last;
#rewrite ^/catalog/([a-zA-Z0-9]+).html$ /modules/article/articlelist.php?class=$ 1 last;
#rewrite ^/fullflag/([0-9]+)-([0-9]+).html$ /modules/article/index.php?fullflag= $1&page=$2 last;
#rewrite ^/toplist/([a-z]+)-([0-9]+).html$ /modules/article/toplist.php?sort=$1& page=$2 last;
#rewrite ^/bookreader/([0-9]+)-([0-9]+).html$ /modules/article/reader.php?aid=$1 &cid=$2 last;
其中,注释掉的大家可以自由调试,我用的模板是小说阅读网的,恩。
标签: #+ #- #html$ /modules/article/articlelist.php #html$ /modules/article/index.php #a
评论列表