Joomla 1.0,管理员链接重定向到"installation/index.php",如何防止这种重定向? [英] Joomla 1.0, administrator link redirect to "installation/index.php", how to prevent this redirection?
问题描述
我只是将旧的Joomla 1.0网站迁移到localhost,前端可以正常工作,但是当我尝试打开管理员时,将其重定向到"installation/index.php"文件,但是没有打开的内容, 如何防止发生这种情况,我正在检查以下代码中的路径,该代码位于administrator/index2.php文件中,其正确路径为正确,但管理员仍未打开.
I'm just migrate my old Joomla 1.0 site to localhost, fronted works fine, but when I try to open administrator its redirect to "installation/index.php" file and nothing to open, how to prevent this thing, I'm check path in below code which is present in in administrator/index2.php file its correct path but still administrator not open.
if (!file_exists( 'C:/xampp/htdocs/myproject/configuration.php' )) {
header( 'Location: ../installation/index.php' );
exit();
}
推荐答案
我不相信Administration/index2.php的源文件会验证路径中的文件:
I don't believe that the source file of administration/index2.php validates the file in path:
'C:/xampp/htdocs/myproject/configuration.php'
'C:/xampp/htdocs/myproject/configuration.php'
它被修改了吗?
这篇关于Joomla 1.0,管理员链接重定向到"installation/index.php",如何防止这种重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!