帝国伪静态咋搞来着?
帝国伪静态咋搞来着?第一次搞帝国,有没有大佬指教指教 是不是用的宝塔面板?宝塔面板在网站设置里面能看到伪静态规则设置。
然后再去网站后台里面设置。 谢谢大佬,我去试试 官方有社区,有教程 帝国没必要。。 不懂问问ai 太简单,我这个就是伪静态啊。响应头没有last-modified:这个吧。说明就是伪静态的哈 这个更能说明是伪静态,不然命中率没有这么高的 帝国默认都支持伪静态,如果要想跟静态地址一样,只要稍微修改下即可 我发下我的伪静态规则rewrite ^/min/(=.*) /min/index.php?$1 last;rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;rewrite ^/tags-(.+?)-(+).html$ /e/tags/index.php?tagname=$1&page=$2 last;rewrite ^/comment-(.+?)-(+)-(+)-(+)-(.+?)-(+).html /e/pl/index.php?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6 last;rewrite ^([^\.]*)/e/MusicSys/play/indexdj\.html$ $1/e/MusicSys/play/indexdj.php last;rewrite ^([^\.]*)/e/MusicSys/play/index\.html$ $1/e/MusicSys/play/index.php last;rewrite ^([^\.]*)/ecmsapi/(+?)/(+?)/(+?)/(+?).html$ $1/ecmsapi/index.php?mod=$2&act=$3&classid=$4&id=$5 last;rewrite ^([^\.]*)/ecmsapi/(+?)/(+?)/$ $1/ecmsapi/index.php?mod=$2&act=$3 last;rewrite ^([^\.]*)/ecmsapi/(+?)/(+?)/(+?)/$ $1/ecmsapi/index.php?mod=$2&act=$3&enews=$4 last;rewrite ^([^\.]*)/disallow/(+?).html$ $1/disallow/?name=$2 last;rewrite ^([^\.]*)/e/DownSys/play/index-(.+?)-(.+?)-(.+?)\.html$ $1/e/DownSys/play/index.php?id=$2&classid=$3&pathid=$4 last;rewrite ^([^\.]*)/e/DownSys/down-(+)-(+)\.html$ $1/e/DownSys/down.php?classid=$2&id=$3 last;rewrite ^([^\.]*)/e/DownSys/DownSoft/index-(.+?)-(.+?)-(.+?)\.html$ $1/e/DownSys/DownSoft/index.php?id=$2&classid=$3&pathid=$4 last;rewrite ^([^\.]*)/e/action/jiehexiang-(.+?)-(.+?)-(.+?)-(.+?)-(.+?).html$ $1/e/action/ListInfo.php?page=$2&mid=$3&tempid=$4&ph=$5&infozm=$6 last;rewrite ^([^\.]*)/e/search/result/search-(.+?)-(.+?).html$ $1/e/search/result/index.php?page=$2&searchid=$3 last;rewrite ^([^\.]*)/e/extend/chat/chatmore-(.+?)-(.+?).html$ $1/e/extend/chat/chatmore.php?page=$2&searchid=$3 last;rewrite ^([^\.]*)/e/extend/chat/chatmorered-(.+?)-(.+?).html$ $1/e/extend/chat/chatmorered.php?page=$2&searchid=$3 last;rewrite ^/e/tool/gbook/gbook-(\d+)-(+)\.html$ /e/tool/gbook/?bid=$2&page=$1 last;if (!-f $request_filename){set $rule_0 1$rule_0;}if ($request_uri !~ "^(/d/|/e/|/ecmsapi/|/disallow/|/book/|/full/|/vip/|/a/|/b/|/c/|/sitemap/|/html/|/images/|/s/|/search/|/skin/|/t/|/min/)"){set $rule_0 2$rule_0;}if ($rule_0 = "21"){rewrite ^/(+)/(+)(*).html$ /e/action/show.php?classid=$1&id=$2&page=$3 last;}if (!-e $request_filename) { return 404;}当然不能照抄。我主要举例的是含有伪静态地址跟静态地址是一样的规则而已,里面涉及了结合项,搜索,http链接数合并,留言本等
页:
[1]
2