Isapi ReWrite:如何匹配 url 的一部分?

发布于 2024-08-23 07:38:40 字数 155 浏览 2 评论 0原文

我们正在移动网站平台。旧网站内置了一些网址重写,因此网址看起来像“/product-name-here-1.aspx”。我需要使用 Isapi-Rewrite 语法从该 url 中获取 id。

我有一个地图文件,它获取 id 并重定向到新平台上的页面。

提前致谢。

we are moving website platforms. The old site has some url rewriting built into it, so the urls look like "/product-name-here-1.aspx". I need to get the id out of this url using Isapi-Rewrite syntax.

I've got a map file that takes the id and redirect to the page on the new platform.

thanks in advance.

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

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

发布评论

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

评论(1

南街女流氓 2024-08-30 07:38:40

我想它应该是这样的:

RewriteBase /
RewriteRule ^.+-(\d+)\.aspx$ ...

不确定规则的正确部分应该是什么,因为您没有指定。

I guess it should be something like this:

RewriteBase /
RewriteRule ^.+-(\d+)\.aspx$ ...

Not sure what the right part of the rule should be as you haven't specified that.

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