LoginSignup
0
0

More than 3 years have passed since last update.

Wordpress を Nginx で使っていてパーマリンクが使えなくなった時の解決方法

Posted at

パーマリンクを使っているページに行こうとすると、次のエラーが出ました。
wordpress_nginx_permalink.png

この解決方法です。

/etc/nginx/sites-available/default
(省略)
    location / {
        # First attempt to serve request as file, then
        # as directory, then fall back to displaying a 404.
        try_files $uri $uri/ /index.php?$args;
#       try_files $uri $uri/ =404;
    }
(省略)

振り返って、こうなっった原因を考えると、Ubuntu 19.10 から 20.04 へのアップグレードでした。
元の設定ファイルが、default.dpkg-old にリネームされ、新しく default が出来ていました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0