gpt4 book ai didi

php - Joomla 管理员重定向到安装

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:35:44 27 4
gpt4 key购买 nike

我有一个 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 根目录,并将其保存在 defines.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');

它在 administrator/includes/framework.php 中的第 25-26 行

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

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

关于php - Joomla 管理员重定向到安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18398526/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com