Joomla管理员重定向到安装

时间:2013-08-23 08:42:48

标签: php .htaccess redirect joomla

我有一个Joomla 2.5网站,我无法再访问管理员面板了。这只会将我重定向到/installation/index.php(它应该)给出404.我认为这是在升级之后发生的。

我尝试按照此处的建议清除浏览器缓存:Joomla 1.0, administrator link redirect to "installation/index.php", how to prevent this redirection?

但那没用。

很久以前,在1.x天之后,Joomla网站上有一些安全建议,其中建议将configuration.php移到我跟随的public_html目录之外。我现在找不到它们,但我尝试将configuration.php文件复制到Joomla根目录,并将其保存在define.php(define('JPATH_CONFIGURATION')中定义的目录中。

有什么想法吗?

我的扩展程序

bash-3.2$ find plugins/ -type d
plugins/
plugins/authentication
plugins/authentication/gmail
plugins/authentication/joomla
plugins/authentication/ldap
plugins/captcha
plugins/captcha/recaptcha
plugins/content
plugins/content/emailcloak
plugins/content/finder
plugins/content/geshi
plugins/content/geshi/geshi
plugins/content/geshi/geshi/geshi
plugins/content/joomla
plugins/content/loadmodule
plugins/content/pagebreak
plugins/content/pagenavigation
plugins/content/vote
plugins/editors-xtd
plugins/editors-xtd/article
plugins/editors-xtd/image
plugins/editors-xtd/pagebreak
plugins/editors-xtd/readmore
plugins/editors
plugins/editors/codemirror
plugins/editors/none
plugins/editors/tinymce
plugins/extension
plugins/extension/joomla
plugins/finder
plugins/finder/categories
plugins/finder/contacts
plugins/finder/content
plugins/finder/newsfeeds
plugins/finder/weblinks
plugins/quickicon
plugins/quickicon/extensionupdate
plugins/quickicon/joomlaupdate
plugins/search
plugins/search/categories
plugins/search/contacts
plugins/search/content
plugins/search/newsfeeds
plugins/search/weblinks
plugins/system
plugins/system/cache
plugins/system/debug
plugins/system/highlight
plugins/system/languagecode
plugins/system/languagecode/language
plugins/system/languagecode/language/en-GB
plugins/system/languagefilter
plugins/system/log
plugins/system/logout
plugins/system/p3p
plugins/system/redirect
plugins/system/remember
plugins/system/sef
plugins/user
plugins/user/contactcreator
plugins/user/joomla
plugins/user/profile
plugins/user/profile/fields
plugins/user/profile/profiles

6 个答案:

答案 0 :(得分:2)

试试这个,如果不工作转移到另一个点。

1。更改此

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
   header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php');

对此:

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'],   'index.php')).JPATH_INSTALLATION.'/index.php');

administrator/includes/framework.php

中的第25-26行

2. 删除此文件中的第23-32行 - 它会检查安装文件夹和配置文件的大小,如果您没有安装文件夹且配置文件正常,则可以删除此

3。在configuration.php中将变量$sef$sef_rewrite设置为零

答案 1 :(得分:1)

诊断情况

也许你应该从诊断插件开始?通过删除它们并逐个添加以查看导致问题的原因。正如您最近更新的那样,插件可能会导致此问题,因为它已过时,并且会在软件和扩展程序之间产生冲突。

问题可能是因为无法找到配置,因此Joomla假设您尚未安装该软件。

你做过所有这些吗?

  • 删除了安装文件夹
  • 检查.htaccess是否导致问题
  • 尝试降级并升级?

答案 2 :(得分:1)

我认为插件不会导致重定向到安装文件夹。系统很可能认为它还没有安装,这很可能是由于在Joomla预期的位置缺少configuration.php文件引起的。

您可以尝试将以下内容添加到defines.php的 end 中:

var_dump(file_exists(JPATH_CONFIGURATION.DS.'configuration.php'));

如果输出为true - 表示配置文件存在且问题不在其中。 然后我将.htaccess重命名为htaccess.txt以确保它没有效果。 如果这不起作用,您还可以在public_html文件夹中查找index.php文件,并确保没有对其进行任何更改。

我很确定配置文件不在其位置,这应该可以解决您的问题。如果没有,请回击我,我会进一步帮助你。

答案 3 :(得分:1)

试试这件事

  • 删除joomla安装文件目录:c:/ host / project path / your site / installation
  • 检查您的服务器并重新启动它
  • 确保服务器上提供所需的服务
  • 尝试安装新的Joomla软件包http://www.joomla.org/download.html

由于

答案 4 :(得分:0)

恕我直言,您需要在安装后删除/ installation文件夹。否则,如果它找到此文件夹,您将被重定向到那里。

答案 5 :(得分:0)

出于安全原因,在安装完成后删除安装文件夹之前,Joomla不允许将您重定向到您的站点前端或后端。请确保删除了joomla /installation文件夹,如果是,请尽可能重新启动服务器。

相关问题