可以在 url 中隐藏 .dll 扩展名

发布于 2024-07-17 16:18:43 字数 197 浏览 5 评论 0原文

我正在寻找一种技巧来隐藏 url 中 isapi dll 的 .dll 扩展名。 我不知道这是否可能。 但我更喜欢隐藏它。

例子 www.mysite.com/test/myapp.dll/testfunction

将是 www.mysite.com/test/myapp/testfunction

非常感谢

I'm looking for a trick to hide the .dll extension of an isapi dll in an url. I don't know if this is possible. but I preffer to hide it.

Example
www.mysite.com/test/myapp.dll/testfunction

would be
www.mysite.com/test/myapp/testfunction

Thank you very much

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

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

发布评论

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

评论(4

七秒鱼° 2024-07-24 16:18:43

您可以将页面上的链接更改为 ww.mysite.com/test/myapp/testfunction 并使用以下配置 ISAPI_Rewrite 3

RewriteBase/

RewriteRule ^test/myapp/testfunction$ /test/myapp.dll/testfunction [NC,L]

You may change the link on page to say ww.mysite.com/test/myapp/testfunction and use the following config with ISAPI_Rewrite 3:

RewriteBase/

RewriteRule ^test/myapp/testfunction$ /test/myapp.dll/testfunction [NC,L]

我一向站在原地 2024-07-24 16:18:43

您可以编写 ISAPI 过滤器并根据需要更改 URI。 当然,还有现成的商业免费

You can write ISAPI filter and change the URI as you like. There are, of course, ready commercial and free ones

雪化雨蝶 2024-07-24 16:18:43

这个链接可能有用

编辑:上面的链接实际上很混乱,因为我不这样做不认为它解决了手头的问题。

这两个链接
一个需要一些编码,
这个一个 需要一些 IIS 设置

This link may be of use

EDIT: The link above is actually confusing as I don't think it solves the problem at hand.

These two links
this One requires some coding,
this One requires some IIS Setup

梦一生花开无言 2024-07-24 16:18:43

IIRF(IIS5/6/7 的免费 URL 重写器)中,您可以执行以下操作:

RewriteRule  ^/test/([^/]+)/([^/]+)$  /test/$1.dll/$2   [I,L]

此规则具有狂野-卡上的 DLL 名称和函数匹配。

还有更多的可能性。

In IIRF, a free URL rewriter for IIS5/6/7, you can do this:

RewriteRule  ^/test/([^/]+)/([^/]+)$  /test/$1.dll/$2   [I,L]

This rule has wild-card matching on the DLL name and function.

Lots more possibilities, too.

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