Joomla管理员重定向到安装

Nic*_*son 5 php .htaccess joomla redirect

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

我试图清除浏览器缓存,如下所示:Joomla 1.0,管理员链接重定向到"installation/index.php",如何防止这种重定向?

但那没用.

很久以前,在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
Run Code Online (Sandbox Code Playgroud)

JTC*_*JTC 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');
Run Code Online (Sandbox Code Playgroud)

对此:

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

其第 25-26 行administrator/includes/framework.php

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

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