我有一個成員部分和論壇建立wordpress,整個站點正在重新開發,但與Joomla 3.0,很多內容將不得不被複制並粘貼到新網站,但該網站的所有者希望保留舊的WordPress的網站一段時間,並可能將其融入新的joomla網站與CSS和造型。如何整合一個WordPress站點與Joomla 3.0
我試過把一個站點放在另一個站點上,碰撞的唯一兩個文件是license.txt(我不擔心)和index.php文件。
這兩個網站將工作正常,如果它的index.php,但如果它是wordpress的index.php Joomla的鏈接會給出錯誤,如果它是Joomla的index.php,任何WordPress的鏈接將進入joomla索引頁面。
什麼是最好的方式來工程這主要index.php將Joomla?
這裏是index.php文件
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php')
感謝
WordPress的
您可以將WordPress安裝在'blog /'目錄中? – andrewsi
將兩個網站放在一個目錄中是最糟糕的想法!只需將wordpress放在分隔的目錄中,就像@andrewsi所說的那樣,如果你願意,可以使用.htaccess重寫URL。 –
我寧願只使用一個目錄,但業主害怕從鏈接失去谷歌排名。只是尋找工作。 – JohnnyQ