0

質問があります。

ユーザーがサイトにアクセスしたときにカスタム URL がこれらのページを指すようにする通常のサイトがあります。

index.html - custom_index.cfm?custom_id=1&page_id=1&inc=index

about.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
}
4

1 に答える 1

0

Apache mod_rewrite should help you here - check out this article that should get you on your way.

Good luck!

于 2012-02-16T18:25:10.813 に答える