嗨你好我有一個工作的網站localhost,我想在網上移動。 我使用WP 3.2.1,並從本地主機導出數據庫。 之後,我剛剛用文本編輯器打開.sql文件,並用'http://mynewdomain.com'替換了所有'http:// localhost/mysite'。 之後,我在線編輯了新目標數據庫的wp-config.php文件,因此我在線上傳了所有內容。 我可以正確地看到index.php頁面(除了西班牙語,中文等字符被破壞)和其他幾個部分,但如果我嘗試訪問wp-admin部分..並且每當我嘗試瀏覽到任何其他網站的部分時,我都會看到以下錯誤:WordPress的:移動網站在線500內部錯誤
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>
解決:我不得不啓用輸出緩衝,一切都很好了!
這可能是一個問題htaccess – Cyclonecode
我改變了htaccess,但仍然有問題 – luca
你的RewriteBase現在是否正確? – Cyclonecode