为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:Wordpress rest API,访问wp-json节点就跳转主页
相关截图(日志、错误):如题,已经做了Wordpress 永久链接,nginx,php8.2,站点配置服务器配置了 location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { fastcgi_pass unix:/run/php/php8.2-fpm.sock; # 根据PHP版本调整 fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } 使用或是直接访问站点wordpress wp-json节点,就都是主页,请教还需要怎么配置?
|
|