如何让 mod_rewrite 忽略某些目录及其所有子目录?

发布于 2024-07-25 19:01:01 字数 129 浏览 3 评论 0原文

我正在使用 Symphony CMS,默认情况下有一个 mod_rewrite 可以重写所有目录。

但是,我需要它忽略目录 testtransfer 及其所有子目录。

I'm using Symphony CMS which as default has a mod_rewrite that rewrites all directories.

However, I need it to ignore the directories test and transfer and all their subdirectories.

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

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

发布评论

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

评论(2

海螺姑娘 2024-08-01 19:01:02

在两个目录中分别放置一个新的 .htacess 访问文件,然后将以下内容放入:

mod_rewrite off

这应该对其进行排序。

Place a new .htacess access files in each of your two directories, and then place the following in:

mod_rewrite off

That should sort it.

梦亿 2024-08-01 19:01:02

将此规则置于其他规则之上:

RewriteRule ^(test|transfer)(/|$) - [L]

Put this rule above the others:

RewriteRule ^(test|transfer)(/|$) - [L]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文