嗨嗨,我想在 localhost 上有一个工作网站,我想在线移动。我正在使用 WP 3.2.1 并从本地主机导出数据库。之后,我只是用文本编辑器打开了 .sql 文件,并将所有的 'http://localhost/mysite' 替换为 'http://mynewdomain.com'。之后,我在线编辑了新目标数据库的 wp-config.php 文件,因此我在线上传了所有内容。我可以正确地看到 index.php 页面(除了 espanol、chinese 等字符损坏)和其他几个部分,但是如果我尝试访问 wp-admin 部分..并且每当我尝试浏览到任何其他站点的部分时,我都会得到以下错误:
Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs/www.***.it/home/wp-content/themes/ottaviano/shortcodes.php:55) in /web/htdocs/www.***.it/home/wp-includes/pluggable.php on line 934
我的 htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
已解决:我必须启用输出缓冲,一切又好了!