5

我正在尝试将 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.

是的,我在 IIS 服务器上部署了 joomla 站点,但我确信它可以同时运行 php 和 asp.net。

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

4

2 回答 2

4

For me the solution was to TURN OFF Search engine friendly URL's.

After installing Joomla it was turned on. I already tried the above options. no result.

When hovering my mouse over the second menubutton I did not see the the php code to that article in the left lower corner of my browser but just mywebsite/folder1/folder2/

and not something like : index.php?options=com and so on.....

So I tried to switch OFF the Search engine friendly URL's after I already had the articles, categories and menu's. And it worked.

于 2012-12-03T16:12:18.987 回答
2

在阅读了您的所有评论后,我可以提出以下建议:

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

  1. 通过转到http://sub.domain.com/administrator/进入管理区域

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

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

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

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

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

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

  4. 选择“系统 - 语言过滤器”,然后禁用它。

于 2012-07-21T11:18:42.633 回答