我正在寻找一种技巧来隐藏 url 中 isapi dll 的 .dll 扩展名。我不知道这是否可能。但我更愿意隐藏它。
示例 www.mysite.com/test/myapp.dll/testfunction
将是 www.mysite.com/test/myapp/testfunction
非常感谢你
您可以将页面上的链接更改为 ww.mysite.com/test/myapp/testfunction 并将以下配置与ISAPI_Rewrite 3一起使用:
重写基础/
RewriteRule ^test/myapp/testfunction$ /test/myapp.dll/testfunction [NC,L]
在IIRF(IIS5/6/7 的免费 URL 重写器)中,您可以执行以下操作:
RewriteRule ^/test/([^/]+)/([^/]+)$ /test/$1.dll/$2 [I,L]
此规则对 DLL 名称和函数进行通配符匹配。
还有更多的可能性。