这是很常见的issue htaccess文件阻止格式错误的未刷新url,如cf7 wp json请求。
因此,请检查您的.htaccess
要查看服务器是否也存在这种情况,请在.htaccess
即在请求末尾添加“/”
# Add trailing slash to the end of the link
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond %{REQUEST_URI} !^/wp-json
RewriteCond %{REQUEST_FILENAME} !\\.(gif|jpg|png|jpeg|css|js|xml)$ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [L,R=301]
# End Adding trailing slash to the end of the link
然后我把电话线关掉了
RewriteCond %{REQUEST_URI} !^/wp-json
在
RewriteRule