ISAPI_Rewrite and Coldfusion Rules

匆匆过客 提交于 2020-01-06 21:31:34

问题


This is the first time that I am trying to use ISAPI_Rewrite and ColdFusion. My hosting company has a wiki which says I need to create an .htaccess file and add the following rules to it:

RewriteEngine on
RewriteRule ^(.*?\.cfm)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA

I have 8 main pages for my website:

  • index.cfm
  • products.cfm
  • product-detail.cfm
  • brands.cfm
  • about.cfm
  • contact.cfm
  • specials.cfm
  • gallery.cfm

I have done that. What I would like to know is:

  1. Since I am new to this, are there any other rules that I need to define? I cannot find a decent tutorial on this matter.

  2. Is there any ColdFusion code that I need to add to my Application.cfm page?

Also how would I change this:

products-search.cfm?filter=brand&brand_id=115

to

products-search.cfm/HKSparts

Like I said, this is my first time trying this out.

Any help would be appreciated.


回答1:


If it's an ISAPI_Rewrite then I'm afraid .htaccess is not the file. Please, see http://www.isapirewrite.com/docs/#conffile. However, if it's ISAPI_Rewrite3, the file format is correct. Try to contact HeliconTech directly. They have a very responsive support team.



来源:https://stackoverflow.com/questions/20950321/isapi-rewrite-and-coldfusion-rules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!