【发布时间】:2012-02-16 18:21:33
【问题描述】:
我有一个问题。
我有一个常规网站,当用户访问该网站时,我希望自定义 url 指向这些页面。
index.html - custom_index.cfm?custom_id=1&page_id=1&inc=index
关于.html - custom_index.cfm?custom_id=5&page_id=5&inc=about
contactus.html - custom_contactus.cfm?custom_id=3&page_id=3&inc=contactus
我该如何处理?
这样的东西会起作用吗?
if (window.location.search.match(/(\?|&)custom_index.cfm?custom_id=3&page_id=3&inc=contactus($|&)/)) {
Load page
}
【问题讨论】:
-
等等,等等,冷聚变?也许你无法控制不得不使用它......但你可能想看看这篇文章:aralbalkan.com/1864
标签: javascript jquery html deep-linking