.htaccess 转发 url 并排除一页

发布于 2024-09-28 14:07:24 字数 134 浏览 2 评论 0原文

如何编写具有以下结果的 .htaccess:

该域上的所有请求都会转发到同一域根文件夹中的 index.html。

index.html 本身不会被转发(排除),因为它包含 2 个出站链接。

谢谢 克里斯

How to write a .htaccess that has in result:

ALL Requests on that domain go forwarded to the index.html at the rootfolder of the same domain.

The index.html itself is not forwarded (excluded) as it includes 2 outbound links.

thanks
chris

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霓裳挽歌倾城醉 2024-10-05 14:07:24
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?index\.php
RewriteRule /?(.*) index.html [L]
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?index\.php
RewriteRule /?(.*) index.html [L]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文