php – Joomla管理员重定向到安装
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了php – Joomla管理员重定向到安装,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2775字,纯文字阅读大概需要4分钟。
内容图文
![php – Joomla管理员重定向到安装](/upload/InfoBanner/zyjiaocheng/824/5ad1fc4cc7ea45c3bbbbcdd949642eec.jpg)
我有一个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设置为零
内容总结
以上是互联网集市为您收集整理的php – Joomla管理员重定向到安装全部内容,希望文章能够帮你解决php – Joomla管理员重定向到安装所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。