1
次のnginxの設定があります:Wordpressのパーマリンク404エラー
server {
listen 80;
listen [::]:80;
server_name <name>;
client_max_body_size 32m;
root /home/ulnda/www/wordpress;
index index.html index.php;
location/{
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME /home/ulnda/www/wordpress$fastcgi_script_name;
fastcgi_param PHP_VALUE post_max_size=20M;
fastcgi_param PHP_VALUE upload_max_filesize=20M;
}
}
サイトは、たとえばhttp://somedomain.comのドメインで正常に動作します。しかし、permalink http://somedomain.com/post-about-seaで投稿を開こうとすると、404エラーが表示されます。どうすれば修正できますか?ありがとう!
これは機能します。ありがとう! – malcoauri