2016-05-16 34 views
0

我們目前託管在bluehost上。Magento網站啓動服務器只顯示主頁

我們的舊網站位於public_html的根文件夾中。我們開發了一個新的,並將其放置在一個名爲prototype的子目錄文件夾中。原型現在已經完成,我們希望我們的主域名重定向新的開發網站。

注意:它們都在活服務器上,我們使用addon域以 訪問原型。

我們我們的.htaccess更新爲此

# BlueHost.com 
# .htaccess main domain to subdirectory redirect 
# Do not change this line. 
RewriteEngine on 
# Change example.com to be your main domain. 
RewriteCond %{HTTP_HOST} ^(www.)?ourdomain.com$ 
# Change 'subdirectory' to be the directory you will use for your main domain. 
RewriteCond %{REQUEST_URI} !^/prototype/ 
# Don't change the following two lines. 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
# Change 'subdirectory' to be the directory you will use for your main domain. 
RewriteRule ^(.*)$ /prototype/$1 
# Change example.com to be your main domain again. 
# Change 'subdirectory' to be the directory you will use for your main domain 
# followed by/then the main file for your site, index.php, index.html, etc. 
RewriteCond %{HTTP_HOST} ^(www.)?ourdomain.com$ 
RewriteRule ^(/)?$ prototype/index.php [L] 

我們還更新了網址的安全和不安全包括其他網址。我們 也清除日誌,緩存和會話。

的問題是,該網頁是工作,但是當我們試圖在其他網頁瀏覽它顯示網站即使URL是正確的主頁。有些網頁有正確的網址,但對於其他喜歡我們的網站並與我們聯繫,網址來自舊網站。這有點奇怪,而不是顯示舊網站主頁正在顯示的404頁面。

我們甚至無法訪問magento管理員。

我對如何解決這個問題沒有任何想法。

這是否與我們的託管服務提供商有關?

我們是否需要重新啓動服務器?

+0

您是否刪除了緩存文件夾?首先刪除它嘗試可能會幫助你。 –

+0

你有其他網頁404嗎? –

+0

@Dinesh Bhojvani是的,我刪除了緩存文件夾。 – rodge

回答

0

我覺得作爲子你的Magento安裝folder.You需要更新表 core_config_data表

web/unsecure/base_url => http://your-domain/prototype/ 
 
web/secure/base_url => http://your-domain/prototype/

將遵循以下的步驟。

  1. 清除緩存。

  2. 做索引

我希望它會爲你工作。

+0

謝謝,但它也沒有工作。 – rodge

相關問題