我应该使用 heliontech IISRewriter 在 ASP.Net MVC 站点上全局设置重写规则,还是使用 WordPress 按文件夹设置重写规则?

发布于 2024-08-04 11:26:42 字数 224 浏览 6 评论 0原文

我正在使用 IIS6(不幸的是)并构建了一个 ASP.Net MVC 应用程序; IIS 设置为通配符以使路由工作,但我有两个包含 WordPress 安装的虚拟目录,工作正常。

我有两个 .htaccess 文件(每个 wp 安装中都有一个)可以很好地处理它们的重写,但我想设置从 /about 到 /blog/about 的重写。我该如何做到这一点?在站点根目录的一个 .htaccess 中创建所有重写是否更好?

I'm using IIS6 (unfortunatly) and have built an ASP.Net MVC app; IIS is set up for wildcards to make the routing work but I have two virtual directories that contain wordpress installations which works fine.

I have two .htaccess files (one in each wp install) that handles their rewriting fine, but I want to setup a rewrite from /about to /blog/about. How would I do that and is it better to create all the rewrites in one .htaccess at the root of the site?

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

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

发布评论

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

评论(1

最丧也最甜 2024-08-11 11:26:42

使用单独的文件,有助于隔离发生的问题。

Use separate files, it helps isolate problems if they occur.

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