Joomla index.php页面会自动重定向,并显示"未找到"错误

oli*_*dev 5 joomla

我正在尝试将joomla网站复制到网站的子域:http://sub.domain.com.数据库,一切似乎都很好.当我访问http://sub.domain.com时,该网站会自动重定向到:http://sub.domain.com/en/index.php,错误是:

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please try the following:

Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
Run Code Online (Sandbox Code Playgroud)

是的,我在一台IIS服务器上部署了joomla网站,但我确信它既适用于php,也适用于asp.net.

有关这种自动重定向的任何想法,我该如何解决这个问题?

jac*_*Joe 2

看完大家的评论后,我可以给出这个建议:

知道之前的服务器不是 IIS,当你说它在 Linux 中时,可能是 Apache 服务器,然后按照以下步骤操作:

  1. 进入管理区域:http://sub.domain.com/administrator/

  2. 选择“全局配置”,然后选择“站点”选项卡;

  3. 转到右栏,在“使用 URL 重写”中选择“否”。

如果您没有一种以上的语言,您可以执行以下操作(在此示例中,英语将是默认语言):

  1. (在管理区域)进入菜单“扩展”并选择“语言管理器”,进入“已安装 - 站点”选项卡;

  2. 选择(单击复选框)英语,然后单击“默认”(假设此屏幕中有多种语言)。

  3. 进入菜单“扩展”并选择“插件管理器”;

  4. 选择“系统-语言过滤器”,并将其禁用。