nginxで設定したwordpressで、
home.php
やfront-page.php
が優先されて表示されません。
何をおいても、index.phpが優先的に読まれます。
home.php
やfront-page.php
は↓を参考にしました。
WordPress:TOPページのindex.phpとhome.phpの違い
何か特別な設定が必要なのでしょうか?
nginxのconfigファイルは以下のようになっています。
server { listen 80; server_name example.com; index index.php index.html; root /var/www/wordpress/example.com/ ; location ~* /wp-config.php { deny all; } location ~ \.php$ { root /var/www/wordpress/example.com/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
回答1件
あなたの回答
tips
プレビュー