php – 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

解决方法:

尝试这个,如果不工作移动到另一个点.

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');

它在管理员/ includes / framework.PHP中的第25-26行

2.删除文件中的第23-32行 – 它检查安装文件夹和配置文件的大小,如果你没有安装文件夹,配置文件没问题,你可以删除这个

3.在configuration.PHP中将变量$sef和$sef_rewrite设置为零

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...