杰奇小说站伪静态规则超简单版发布
『特别提示:以下内容由金光新闻采集从互联网自动获取』以前发布过一个文章的伪静态办法
现在我都不记得怎么弄了 也没时间去弄了
这次我花了少许时间弄了个简短的文章列表与文章信息页面的伪静态规则
演示地址:
牛文小说:http://www.nv001.cn/
文章信息页:http://www.nv001.cn/txt/31.html
文章列表页:http://www.nv001.cn/list/0_1.html
规则如下:# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为你的论坛目录地址,假设程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /
# Rewrite 系统规则请勿修改
rewritecond %{http_host} ^nv001.cn
rewriterule ^(.*)$ http://www.nv001.cn/$1
RewriteRule ^txt/(.+)\.html$ modules/article/articleinfo\.php?id=$1
RewriteRule ^list/0(.+)_(.+)\.html$ modules/article/articlelist\.php?class=$1&page=$2
RewriteRule ^list/(.+)_(.+)\.html$ modules/article/articlelist\.php?class=$1&page=$2
RewriteRule ^class/(.+)_(.+)\.html$ modules/article/index\.php?initial=$1&page=$2
RewriteRule ^top/(.+)_(.+)\.html$ modules/article/toplist.php?sort=$1&page=$2
我是照搬我站上的.htaccess,你没必要照搬哦.至于后台如何设置
『以上内容为网上采集,并不代表金光网络的观点,请及时删除不良信息和非法内容!』
页:
[1]