我有一个名为 index.xml 的 xml 文件,它位于我的网站中:www.mywebsite.com/siteregistry/index.xml 当用户访问这样的网站时:www.mywebsite.com/siteregistry/ 有一个页面“禁止"; 但是,如果用户访问此链接:www.mywebsite.com/siteregistry/index.xml,他们会看到所有 url 链接。
我如何强制 www.mywebsite.com/siteregistry/ 显示与此相同的文件:www.mywebsite.com/siteregistry/index.xml
我从逻辑上猜想这个链接 www.mywebsite.com/siteregistry/ 正在寻找 index.html 或 index.php,我怎样才能将 index.xml 包含在组合中?
非常感谢