RewriteRule 二级目录怎么写?

RewriteRule/loginok.html/huiyuan/loginok.asp这样总是找不到页面,怎么弄?... RewriteRule /loginok.html /huiyuan/loginok.asp 这样总是找不到页面,怎么弄? 展开
 我来答
nothingbuy
推荐于2016-10-03 · TA获得超过103个赞
知道答主
回答量:100
采纳率:0%
帮助的人:30.7万
展开全部
RewriteRule (.*)/book\.html$ $1/modules/article/index\.php [L]
RewriteRule (.*)/catalog/([0-9]+)-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
RewriteRule (.*)/catalog/([0-9]+)/index\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
RewriteRule (.*)/chkbook/([0-9]+)/([0-9]+)\.html$ $1/modules/article/articleinfo\.php\?id=$3 [L]

RewriteRule (.*)/chkbook_([0-9]+)\.html$ $1/r\.asp\?id=$2 [L]
RewriteRule (.*)/catalog/-([0-9]+)\.html$ $1/modules/article/toplist\.php\?sort=lastupdate&page=$2 [L]
RewriteRule (.*)/chksort/([0-9]+)-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]

RewriteRule (.*)/chkinitial/0-([0-9]+)\.html$ $1/modules/article/index\.php\?initial=~&page=$2 [L]
RewriteRule (.*)/chkinitial/([1A-Z])-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?initial=$2&page=$3 [L]
#chkinitial/G-1.html
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
匿名用户
2012-02-09
展开全部
RewriteEngine on
rewritebase /youxi/

rewriterule ^index.html$ /index.php?m=index
rewriterule ^my/(.*)\.html$ /index.php?m=about&d=$1

rewriterule ^0/$ /index.php?m=list
rewriterule ^0/index\.html$ /index.php?m=list
rewriterule ^(\d+)/$ /index.php?m=list&typeid=$1
rewriterule ^(\d+)/index\.html$ /index.php?m=list&typeid=$1
rewriterule ^(\d+)/f\.html$ /index.php?m=list&typeid=$1&s=f
rewriterule ^(\d+)/n\.html$ /index.php?m=list&typeid=$1&s=n
rewriterule ^(\d+)/p(\d+)\.html$ /index.php?m=list&typeid=$1&p=$2
rewriterule ^(\d+)/f-(\d+)\.html$ /index.php?m=list&typeid=$1&p=$2&s=f
rewriterule ^(\d+)/n-(\d+)\.html$ /index.php?m=list&typeid=$1&p=$2&s=n

rewriterule ^(\d+)/top\.html$ /index.php?m=top&typeid=$1

rewriterule ^t/$ /index.php?m=zhuanti
rewriterule ^t/index.html$ /index.php?m=zhuanti
rewriterule ^(\w+)/$ /index.php?m=topic&topicpin=$1
rewriterule ^(\w+)/index\.html$ /index.php?m=topic&topicpin=$1
rewriterule ^(\w+)/f\.html$ /index.php?m=topic&topicpin=$1&s=f
rewriterule ^(\w+)/n\.html$ /index.php?m=topic&topicpin=$1&s=n
rewriterule ^(\w+)/p(\d+)\.html$ /index.php?m=topic&topicpin=$1&p=$2
rewriterule ^(\w+)/f-(\d+)\.html$ /index.php?m=topic&topicpin=$1&p=$2&s=f
rewriterule ^(\w+)/n-(\d+)\.html$ /index.php?m=topic&topicpin=$1&p=$2&s=n

rewriterule ^g/(\d+)\.html$ /index.php?m=show&gameid=$1
rewriterule ^g/(\d+)-play\.html$ /index.php?m=play&gameid=$1
rewriterule ^g/(\d+)-screen\.html$ /index.php?m=play-screen&gameid=$1
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式