我们目前托管在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管理员。
我对如何解决这个问题没有任何想法。
这是否与我们的托管服务提供商有关?
我们是否需要重新启动服务器?
您是否删除了缓存文件夹?首先删除它尝试可能会帮助你。 –
你有其他网页404吗? –
@Dinesh Bhojvani是的,我删除了缓存文件夹。 – rodge