【问题标题】:wordpress script and content 404 network error absolute path errorwordpress脚本和内容404网络错误绝对路径错误
【发布时间】:2017-07-18 03:15:25
【问题描述】:

使用的配置:ubuntu 服务器 14.04、php-fps、nginx、mysql 5.6 和最新的 wordpress。 网络服务器下(nginx) 配置nginx绝对路径为/var/www/html/wordpress/

但是在wordpress目录下: 样式表和图像文件类型不会加载(404 错误),因为它们正在寻找路径 http://localhost/wordpress/wp-includehttp://localhost/wordpress/wp-content

由于缺少此 wordpress 目录。 因此,我们必须再创建一个名为“wordpress”的目录,并在该目录下提供指向 wp-include 和 wp-content 的软链接。

这是一个临时修复。我到底需要在哪里进行更改。

【问题讨论】:

    标签: css wordpress http-status-code-404 stylesheet


    【解决方案1】:

    我认为您应该修改数据库中表中的site_url,您的site_url 已存储在wp_option 表中。可能是http://localhost/your-site/ 改成http://localhost/wordpress/

    希望这会有所帮助...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-07
      • 2017-02-08
      • 2016-12-18
      • 2013-01-24
      • 2015-09-21
      • 2016-09-12
      相关资源
      最近更新 更多