我的客户希望我摆脱 dll 和 ? url 中的 & 字符并使用 SEO 友好的 url。
我该如何处理这个 URL - 重写?
目前我有类似的东西:
http://www.ultimateholidayplanner.com/uhp.dll/AccList?PN=AccommodationSearch.htm
这需要变成类似的东西:
http://www.ultimateholidayplanner.com/Accommodation/List.htm
非常感谢
我的客户希望我摆脱 dll 和 ? url 中的 & 字符并使用 SEO 友好的 url。
我该如何处理这个 URL - 重写?
目前我有类似的东西:
http://www.ultimateholidayplanner.com/uhp.dll/AccList?PN=AccommodationSearch.htm
这需要变成类似的东西:
http://www.ultimateholidayplanner.com/Accommodation/List.htm
非常感谢
你不需要改变你的代码,你只需要使用类似ISAPI_Rewrite的东西
ISAPI 扩展可以映射到扩展“.*”,创建通配符扩展映射,从而捕获对站点/虚拟目录的所有请求。(尤其是未选中“检查文件是否存在”)
(如果您可能感兴趣:我发现在xxm上工作)