请问站内站这样写规则对吗? 悬赏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;
首页伪静态规则,如果不使用动态首页,请勿必删除这一行,否则打开首页会出现死循环
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]
收藏了 有机会试试
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]
收藏了 有机会试试
看起来很复杂
收藏了 有机会试试