サポート » 使い方全般 » nginxでwordpressのパーマリンク設定

  • 教えてgooでもポストしたのですがレスがつかないのでこちらにも投稿させて頂きます。

    nginxでwordpressのパーマリンク設定をしたのですが動作しません。
    404となってしまいます。
    デフォルトの設定だと動きます。

    カスタム設定は
    /%year%/%monthnum%/%postname%.html
    としています。

    confは下記の通り設定しました。

    動かない原因はどういったことが考えれますでしょうか?
    ご教授頂けますようよろしくお願い致します。

    server {
    listen 80;
    listen 443 ssl;
    server_name xxxxx;
    ssl on;
    ssl_certificate /usr/local/nginx/conf/server.crt;
    ssl_certificate_key /usr/local/nginx/conf/server.key;
    index index.php index.html index.htm;
    root /var/www/html/xxxxx/;
    charset utf-8;
    access_log /var/log/httpd/xxxxx.access.log;
    error_log /var/log/httpd/xxxxx.error.log;

    location = / {
    limit_req zone=one burst=5 nodelay;
    root /var/www/html/xxxxx;
    index index.html index.htm index.php;

    if (!-e $request_filename) {
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
    }
    }
    location ~ \.php$ {
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param HTTPS on;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /var/www/html/xxxxx/$fastcgi_script_name;
    include fastcgi_params;
    }

    location ~ /\.ht {
    deny all;
    }
    }

  • トピック「nginxでwordpressのパーマリンク設定」には新たに返信することはできません。