好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

阿里云虚拟主机如何设置wordpress伪静态规则

现在估计很少人会用到云虚拟机,毕竟各家轻量云也比较香。如果你刚好有一台阿里云的虚拟主机,又恰好在使用 WordPress 网站。那么就有可能碰到设置了WordPress 固定链接后,文章、分类跳转404的问题。

出现这个问题,不用慌,在阿里云虚拟主机后台中,找到 「高级环境设置」-> 「Nginx设置」,填写下面这段代码即可。

location / {                  # This is cool because no php is touched for static content.                   # include the "?$args" part so non-default permalinks doesn't break when using query string                   try_files $uri $uri/ /index.php?$args;          }  rewrite /wp-admin$ $scheme: //$host$uri/ permanent;  

原文地址:https://www.suxing.me/wp-courses/2249.html

查看更多关于阿里云虚拟主机如何设置wordpress伪静态规则的详细内容...

  阅读:28次