17杰奇

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 6521|回复: 0

通过修改伪静态规则,达到不同阅读页面的目标

[复制链接]

620

主题

265

回帖

101万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1012729
发表于 2024-8-22 16:05:11 | 显示全部楼层 |阅读模式
近期接了个项目,给客户搬站,并且要求搬站后,新模板和老模板所有的页面一致。


/txt<{$id}>.shtml


/book/<{$class}>_<{$page}>.shtml



RewriteEngine on


RewriteCond %{HTTP_HOST} ^XXX.net [NC,OR]
RewriteCond %{HTTP_HOST} ^www.XXX.net [NC]
RewriteRule ^(.*)$ http://www.BBBBB.com/$1 [L,R=301]

RewriteRule ^book1_([0-9]+).shtml$ /modules/article/articlelist.php?class=1&page=$1
RewriteRule ^book2_([0-9]+).shtml$ /modules/article/articlelist.php?class=2&page=$1
RewriteRule ^book3_([0-9]+).shtml$ /modules/article/articlelist.php?class=3&page=$1
RewriteRule ^book4_([0-9]+).shtml$ /modules/article/articlelist.php?class=4&page=$1
RewriteRule ^book5_([0-9]+).shtml$ /modules/article/articlelist.php?class=5&page=$1
RewriteRule ^book6_([0-9]+).shtml$ /modules/article/articlelist.php?class=6&page=$1
RewriteRule ^book7_([0-9]+).shtml$ /modules/article/articlelist.php?class=7&page=$1
RewriteRule ^book8_([0-9]+).shtml$ /modules/article/articlelist.php?class=8&page=$1
RewriteRule ^book9_([0-9]+).shtml$ /modules/article/articlelist.php?class=9&page=$1
RewriteRule ^book10_([0-9]+).shtml$ /modules/article/articlelist.php?class=10&page=$1

RewriteRule ^xuanhuan_([0-9]+).html$ /modules/article/articlelist.php?class=1&page=$1
RewriteRule ^xianxia_([0-9]+).html$ /modules/article/articlelist.php?class=2&page=$1
RewriteRule ^dushi_([0-9]+).html$ /modules/article/articlelist.php?class=3&page=$1
RewriteRule ^lishi_([0-9]+).html$ /modules/article/articlelist.php?class=4&page=$1
RewriteRule ^wangyou_([0-9]+).html$ /modules/article/articlelist.php?class=5&page=$1
RewriteRule ^kehuan_([0-9]+).html$ /modules/article/articlelist.php?class=6&page=$1
RewriteRule ^lingyi_([0-9]+).html$ /modules/article/articlelist.php?class=7&page=$1
RewriteRule ^qita_([0-9]+).html$ /modules/article/articlelist.php?class=8&page=$1
RewriteRule ^paihang/([a-z]+)_([0-9]+).html$ /modules/article/toplist.php?sort=$1&page=$2
RewriteRule ^([0-9]+)/([0-9]+)/index.html$ /modules/article/reader.php?aid=$2
RewriteRule ^([0-9]+)/([0-9]+)/$ /modules/article/reader.php?aid=$2
RewriteRule ^([0-9]+)/([0-9]+)$ /modules/article/reader.php?aid=$2
RewriteRule ^txt([0-9]+).shtml$ /modules/article/reader.php?aid=$1
RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+).html$ /modules/article/reader.php?aid=$2&cid=$3
RewriteRule ^modules/article/templates/$ 404.html
RewriteRule ^templates/(.*).html$ 404.html
RewriteRule ^themes/17mb/(.*).html$ 404.html
RewriteRule ^17mb/(.*).html$ 404.html





RewriteRuleEngine on



RewriteCond %{HTTP_HOST} ^m.oioj.net [NC,OR]
RewriteRule ^(.*)$ http://m.biqucun.com/$1 [L,R=301]
RewriteRule ^/top.html$ /top.php
RewriteRule ^/top-([a-z]+)-([0-9]+)/$ /top.php?type=$1&page=$2
RewriteRule ^/sort.html$ /sort.php
RewriteRule ^/sort-([0-9]+)-([0-9]+)/$ /sort.php?sortid=$1&page=$2
RewriteRule ^/book([0-9]+)_([0-9]+).shtml$ /sort.php?sortid=$1&page=$2
RewriteRule ^/full/$ /full.php?page=1
RewriteRule ^/full-([0-9]+)/$ /full.php?page=$1
RewriteRule ^/([0-9]+)/([0-9]+)$ /info.php?aid=$2
RewriteRule ^/([0-9]+)/([0-9]+)/$ /info.php?aid=$2
RewriteRule ^/all/([0-9]+)/$ /chapterlist.php?aid=$1&page=1
RewriteRule ^/([0-9]+)/([0-9]+)_([0-9]+)/$ /chapterlist.php?aid=$2&page=$3
RewriteRule ^/all/([0-9]+)_([0-9]+)/$ /chapterlist.php?aid=$1&page=$2
RewriteRule ^/wapbook-([0-9]+)_([0-9]+)/$ /chapterlist.php?aid=$1&page=$2
RewriteRule ^/wapbook-([0-9]+)_([0-9]+)_1/$ /chapterlist.php?aid=$1&page=$2&desc=1
RewriteRule ^/([0-9]+)/([0-9]+)/([0-9]+).html$ /chapter.php?aid=$2&cid=$3
RewriteRule ^/author/(.*)$ /author.php?author=$1
RewriteRule ^/17mb/templates/$ /404.html
RewriteRule ^/17mb/templates/(.*)$ /404.html







回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|17杰奇  

GMT+8, 2024-11-10 13:39 , Processed in 0.099291 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表