全球主机交流论坛

标题: oneindex的伪静态规则 [打印本页]

作者: mischief    时间: 2018-12-14 11:35
标题: oneindex的伪静态规则
各位大佬 请给下oneindex的 nginx伪静态规则 不带?号的  
作业借我抄下,谢谢各位大佬
作者: 逸笙    时间: 2018-12-14 11:36
自己去打开.htaccess文件看啊……又没藏起来
作者: Smart    时间: 2018-12-14 11:36
oneindex的用WordPress的就行
作者: 风为裳    时间: 2018-12-14 11:43
  1. if (!-f $request_filename){
  2.         set $rule_0 1$rule_0;
  3. }
  4. if (!-d $request_filename){
  5.         set $rule_0 2$rule_0;
  6. }
  7. if ($rule_0 = "21"){
  8.         rewrite ^/(.*)$ /index.php?/$1 last;
  9. }
复制代码

作者: yzg9540    时间: 2018-12-14 12:14
  1. location / {
  2.         index index.html index.php;
  3.         if (-f $request_filename/index.html){
  4.                 rewrite (.*) $1/index.html break;
  5.         }
  6.         if (-f $request_filename/index.php){
  7.                 rewrite (.*) $1/index.php;
  8.         }
  9.         if (!-f $request_filename){
  10.                 rewrite (.*) /index.php;
  11.         }
  12. }
复制代码

作者: vps1    时间: 2018-12-14 12:26
oneindex大佬能安装成功啊。。。




欢迎光临 全球主机交流论坛 (https://hostloc.gdisk.cf/) Powered by Discuz! X3.4