在 nginx 下,我下面的這個連結沒有識別到,如何處理?

正在檢視 5 個帖子:1-5 (共 5 個帖子)
  • 作者
    帖子
  • 364501079
    • 文章數量: 52
    @364501079
    樓主

    這個識別不了如何處理

    https://km.qj-tech.com.cn/zkzk/wp-activate.php?key=6168bbec809f8cc7

    我的偽靜態

    location / {
    index index.html index.php;
    if (-f $request_filename/index.html){
    rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
    rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
    rewrite (.*) /index.php;
    }
    }
    location ~ \.php(.*)$ {
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    include fastcgi_params;
    }
    rewrite ^/([_0-9a-zA-Z-]+/)?wp-admin$ /$1wp-admin/ permanent;
    if (-f $request_filename){
    set $rule_2 1;
    }
    if (-d $request_filename){
    set $rule_2 1;
    }
    if ($rule_2 = “1”){
    #ignored: 「-」 thing used or unknown variable in regex/rew
    }
    rewrite ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /$2 last;
    rewrite ^/([_0-9a-zA-Z-]+/)?(.*.php)$ /$2 last;
    rewrite /./index.php last;
    rewrite /wp-admin$ $scheme://$host$uri/ permanent;

    364501079
    • 文章數量: 52
    @364501079
    樓主

    這就可以識別。。我應該是沒有識別到 zkzk
    如何寫比較好

     

    364501079
    • 文章數量: 52
    @364501079
    樓主

    這個是多站點的偽靜態。。。
    zkzk 是子站點。。。
    https://km.qj-tech.com.cn/zkzk/wp-activate.php?key=6168bbec809f8cc7
    管理員新增使用者,這個連結是使用者為了啟用賬戶用的。
    但是無法訪問到

    小新
    • 文章數量: 354
    @xiaoxin

    多站點的話,管理員新增使用者直接從網路管理-儀表盤-使用者-新增新使用者建立,不需要傳送啟用連結。

    另外如果是要給子站點增加現有使用者,那麼請直接到子站點的使用者管理-新增新使用者-輸入現有使用者資訊新增。

    詩語
    管理員
    • 文章數量: 5,925
    @feibisi

    nginx 下的 WordPress 偽靜態規則自己到這裡生成一下

    https://nginxconfig.io/?wordpress

正在檢視 5 個帖子:1-5 (共 5 個帖子)
  • 哎呀,回覆話題必需登入。

話題資訊

  • 當前位於:疑難雜症
  • 4 條回覆
  • 3 個參與人
  • 最後回覆:<a href="https://bbs.weixiaoduo.com/users/feibisi/" title=" 檢視詩語的個人資料" class="bbp-author-link"><span class="bbp-author-name"> 詩語</span></a>
  • 上次活動:<a href="https://bbs.weixiaoduo.com/topic/29659/#post-29672" title=" 回覆至:在 nginx 下,我下面的這個連結沒有識別到,如何處理?">6 年、 3 月前</a>