Google App Engine 服务上的 Wordpress 作为子路径

Wordpress on Google App Engine Service as subroute

我正在尝试使用本教程安装 Wordpress https://cloud.google.com/community/tutorials/run-wordpress-on-appengine-standard

我已经部署了它,但是当我尝试使用 dispatch.yaml 将它作为主域的“子文件夹”/blog 服务时,该站点似乎正在加载(例如文件 /blog/2021/05/27/hello-world/), 但 cssjs 文件抛出 404 错误。

例如/blog/wp-includes/css/dist/block-library/style.min.css?ver=5.7.2.

我也更改了数据库中的siteurl,但似乎不起作用。

检查 app.yaml 中的静态文件处理程序。由于您将站点放在文件夹(子文件夹)下,因此对静态文件的调用从 /blog/ 开始。这意味着您的静态文件的处理程序也应以 /blog/

开头