ISAPI_Rewrite和ColdFusion规则 [英] ISAPI_Rewrite and Coldfusion Rules
问题描述
这是我第一次尝试使用ISAPI_Rewrite和ColdFusion。我的托管公司有一个维基,说我需要创建一个 .htaccess
文件,并添加以下规则:
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
我的网站有8个主页:
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
- 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:
-
因为我是新的,是否有任何其他规则,我需要定义?
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.
有没有ColdFusion代码需要添加到Application.cfm页面?
Is there any ColdFusion code that I need to add to my Application.cfm page?
此外,我将如何更改:
products-search.cfm?filter=brand&brand_id=115
到
products-search.cfm/HKSparts
b $ b
像我说的,这是我第一次尝试这个。
Like I said, this is my first time trying this out.
任何帮助将不胜感激。
Any help would be appreciated.
推荐答案
如果是ISAPI_Rewrite,那么恐怕 .htaccess
不是文件。请参阅 http://www.isapirewrite.com/docs/#conffile 。但是,如果它是ISAPI_Rewrite3,文件格式是正确的。尝试直接联系HeliconTech。他们有一个非常敏感的支持团队。
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.
这篇关于ISAPI_Rewrite和ColdFusion规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!