我在我的託管空間的根上安裝了Joomla 1.5.26安裝。我想在一個子目錄中安裝一個WordPress站點。Joomla子目錄中的WordPress安裝
所以我編輯了根.htaccess文件中加入這兩行後立即RewriteEngine敘述在:
RewriteCond %{REQUEST_URI} ^/subdirectory/
RewriteRule ^(.*)$ $1 [L]
我還編輯了functions.php文件加入PHP的開始標記後這兩條線段(顯然是在利用我的域名和子目錄名):
update_option('siteurl', 'http://www.example.com/subdirectory');
update_option('home', 'http://www.example.com/subdirectory');
我已經與「http://www.example.com/subdirectory」改變了「家」和「SITEURL」字段值在表wp_options在MySQL數據庫中。
當我嘗試訪問子目錄時,出現HTTP 500錯誤。
這可能會有所幫助 - http://stackoverflow.com/questions/9092124/how-to-redirect-blog-to-blog – Irfan 2013-05-03 11:05:55