搜外网>搜外问答>问答页面

请问站内站这样写规则对吗? 悬赏3元 已结束

主站是dedecms  

站内站是wordpress

主站伪静态规则

#0后台(如果改了后台文件夹名称,这个位置也要改为新名称)
rewrite ^(.*)/(admin)/$ $1/$2/index.php last;


#123板块
rewrite ^(.*)/wap/(category|chapter|article|shujia|ting|player|tags)/$ $1/wap/$2/index.php last;
rewrite ^(.*)/wap/(member|v|so|txt|author|tag|top)/$ $1/wap/$2/index.php last;
rewrite ^(.*)/wap/(shuku|quanben|paihang|new)/$ $1/wap/$2/index.php last;
#45其它
rewrite ^(.*)/wap/(member|top|so|author|tag|shuku|quanben|paihang|new|tags)/(.*)\.html$ $1/wap/$2/index.php?$3.html last;
rewrite ^(.*)/wap/(top|so|author|)/(.*)-([0-9]+)\.html$ $1/wap/$2/index.php?$3-$4.html last;
#6榜单
rewrite ^(.*)/wap/(click|good|bad|fav)\.html$ $1/wap/top/index.php?$2.html last;
#78目录页书页
rewrite ^(.*)/wap/(\w+)/list/([0-9]+)\.html$ $1/wap/chapter/index.php?$2-$3.html?chapter last;
rewrite ^(.*)/wap/(\w+)/$ $1/wap/content/index.php?$2.html?page last;
#910内容页
rewrite ^(.*)/wap/(\w+)/([0-9]+)\.html$ $1/wap/content/index.php?$3.html last;
rewrite ^(.*)/wap/(\w+)/([0-9]+)_([0-9]+)\.html$ $1/wap/content/index.php?$3_$4.html last;
#1112栏目页
rewrite ^(.*)/wap/(\w+)\.html$ $1/wap/content/index.php?$2.html last;
rewrite ^(.*)/wap/(\w+)/([0-9]+)-([0-9]+)\.html$ $1/wap/category/index.php?$3-$4.html last;
#13禁止直接访问模版
rewrite ^(.*)/wap/templets/(.*)\.html$ $1/wap/404.html last;


#2首页
rewrite ^(.*)/index\.html$ $1/index.php last;
#3-7板块
rewrite ^(.*)/(category|article|image|video|content|shujia|ting|player|tags|app|txt2mysql)/$ $1/$2/index.php last;
rewrite ^(.*)/(wap|member|v|login|locoy|make)/$ $1/$2/index.php last;
rewrite ^(.*)/(new|so|top|author|tag|history)/$ $1/$2/index.php last;
rewrite ^(.*)/(chapter|txt|wap_speed|wap_touch)/$ $1/$2/index.php last;
rewrite ^(.*)/(cj|MyAdmin|paihang|shuku|quanben|tuijian)/$ $1/$2/index.php last;
#89榜单
rewrite ^(.*)/(click|good|bad|fav)\.html$ $1/top/index.php?$2.html last;
rewrite ^(.*)/(click|good|bad|fav)-([0-9]+)\.html$ $1/top/index.php?$2-$3.html last;
#10-13其它
rewrite ^(.*)/(member|new|so|top|author|tag|history|tags)/(.*)\.html$ $1/$2/index.php?$3.html last;
rewrite ^(.*)/(member|new|so|top|author|tag|history)/(.*)-([0-9]+)\.html$ $1/$2/index.php?$3-$4.html last;
rewrite ^(.*)/(shuku|quanben|tuijian|paihang)/(.*)\.html$ $1/$2/index.php?$3.html last;
rewrite ^(.*)/(shuku|quanben|tuijian|paihang)/(.*)-([0-9]+)\.html$ $1/$2/index.php?$3-$4.html last;
#1415内容页
rewrite ^(.*)/(\w+)/([0-9]+)\.html$ $1/content/index.php?$3.html last;
rewrite ^(.*)/(\w+)/([0-9]+)_([0-9]+)\.html$ $1/content/index.php?$3_$4.html last;
#1617目录页书页
rewrite ^(.*)/(\w+)/list\.html$ $1/chapter/index.php?$2.html?chapter last;
rewrite ^(.*)/(\w+)/$ $1/content/index.php?$2.html?page last;
#1819栏目页
rewrite ^(.*)/(\w+)\.html$ $1/content/index.php?$2.html last;
rewrite ^(.*)/(\w+)/([0-9]+)-([0-9]+)\.html$ $1/category/index.php?$3-$4.html last;
#20禁止直接访问模版
rewrite ^(.*)/templets/(.*)\.htm$ $1/404.html last;


站内站伪静态规则,目录名称是SEOwp 这样写哪里错了 给指点下 不生效呢。站内站无法浏览
location /SEOwp/
{
try_files $uri $uri/ /seowp/index.php?$args;
}
rewrite /seowp/wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^/seowp/seowp/sitemap.html$ /seowp/sitemap/map.html.php;
rewrite ^/seowp/sitemap.xml$ /seowp/sitemap/map.xml;
rewrite ^/seowp/sitemap.txt$ /seowp/sitemap/map.txt;

追加问题
    30 人参与回答
seoer
seoer · seo站群
棉花糖 等 1 人赞同该回答

DedeCMS静态规则

首页伪静态规则,如果不使用动态首页,请勿必删除这一行,否则打开首页会出现死循环

RewriteRule ^(.)/index.html $1/index.PHP [I]

列表页伪静态规则

RewriteRule ^(.
)/category/list-([0-9]+).html $1/plus/list.php\?tid=$2 [I]
RewriteRule ^(.)/category/list-([0-9]+)-([0-9]+)-([0-9]+).html $1/plus/list.php\?tid=$2&TotalResult=$3&PageNo=$4 [I]

文章页伪静态规则

RewriteRule ^(.
)/archives/view-([0-9]+)-([0-9]+).html $1/plus/view.php\?arcID=$2&pageno=$3 [I]

搜索伪静态规则

RewriteRule ^(.)/search.html(?:(\?.))* $1/search.php?$2 [I]

TAG标签伪静态规则

RewriteRule ^(.)/tags.html $1/tags.php [I]
RewriteRule ^(.
)/tags/(.)(?:(\?.))* $1/tags.php\?\/$2 [I]
RewriteRule ^(.)/tags/(.)\/(?:(\?.)) $1/tags.php\?\/$2\/ [I]
RewriteRule ^(.)/tags/(.)\/([0-9])(?:(\?.)) $1/tags.php\?\/$2\/$3 [I]
RewriteRule ^(.)/tags/(.)\/([0-9])\/(?:(\?.)) $1/tags.php\?\/$2\/$3\/ [I]

收藏了 有机会试试

橘生淮南
橘生淮南 · 外链用户

雇个技术人员看看把

聚福
聚福 · 有一个愿望:每个站长都能够原创,不再是相互采集,以前采集修改开始/结尾内容,后来二合一,再后来Ai伪原创...

WordPress静态IIS
[ISAPI_Rewrite]# Defend your computer from some worm attacks#RewriteRule .(?:|default.ida|root.exe|..). . [F,I,O]# 3600 = 1 hourCacheClockRate 3600RepeatLimit 32# Protect and files# from accessing through HTTP# Rules to ensure that normal content gets throughRewriteRule /tag/(.) /index.PHP\?tag=$1RewriteRule /software-files/(.) /software-files/$1 [L]RewriteRule /images/(.) /images/$1 [L]RewriteRule / / [L]RewriteRule / / [L]# For file-based wordpress content ( theme), admin, /wp-(.) /wp-$1 [L]# For normal wordpress content, via ^/$ / [L]RewriteRule /(.*) /$1 [L]

小鱼
小鱼 · 专业的ERP定制开发、小程序开发、软件外包、软件开发服务商, 定制化开发服务, 擅长小程序开发,微商城开发,PHP项

这个还是要找个技术人员看看

屎上最无聊的乚
屎上最无聊 · 喜欢网络技术、喜欢搜索引擎优化

看到代码头疼,哈哈

收藏了 有机会试试

qwoeyhoii333
qwoey · 奈斯导航为广大网民精心筛选、整理国内外各类优秀的网站大全,各位站长可以免费提交收录。==》

暂时没有发现什么问题

陈之虎
陈之虎 · 正在输入……

学习一哈,头疼

机场货运联营服务中心
机场货运联 · 机场空运物流服务

收藏了 有机会试试

看起来很复杂

蜻蜓(butterpig.top)
蜻蜓(bu · 各类便捷智能的在线图片处理工具

收藏了 有机会试试

八九神真宵
八九神真宵 · 宏创为集团祝:大哥大嫂过年好——-▄█▀█●—-—帮小弟点一下,感激不尽——-—▄█▀█●———☛☛☛☛☛☛☛☛☛☛

正则表达式看的头晕,一大串的谁来都看懵

收藏了 有机会试试

华趣免费图床
华趣免费图 · 右边点进去看免费图床

静态太多 对服务器性能不好

加载更多