【问题标题】:Localhost install of wordpress on zend server, style is absent在 zend 服务器上安装 wordpress 的 localhost,样式不存在
【发布时间】:2013-05-21 17:06:45
【问题描述】:
这就是我所做的:
- 从 .sql 备份文件安装 wordpress db 表。
- 为我的网站安装了所有插件和主题。
- 将网站 url 和 wordpress url 设为 localhost
- 还将 wp_options 表中的 url 更改为 localhost。
但该网站只显示原始 html,没有任何样式。
*我已阅读有关永久链接的文档。我做了推荐使用 WAMP 的方法。它也没有帮助,我什至没有在页面顶部看到网站上的 wordpress 栏。
【问题讨论】:
标签:
wordpress
wamp
zend-server
【解决方案1】:
在您的wp-config.php 中尝试this:
update_option('siteurl','http://localhost');
update_option('home','http://localhost');
或者,如果您想要一个更临时的解决方案(这不会干扰数据库值),请将其放入您的 wp-config.php:
define('WP_HOME','http://localhost');
define('WP_SITEURL','http://localhost');
【解决方案2】:
我解决了!!由于某种原因,它在 wp-content 文件夹中丢失了一些文件!哇,我以为我要疯了。