iPlanet是否有“干净的URL”(mod_rewrite)等价物?

时间:2011-08-10 23:01:53

标签: coldfusion url-rewriting cfc

我正在使用Coldfusion(因为我必须)并且我们使用iPlanet 7(因为我们必须),并且我想传递干净的URL而不是查询参数垃圾(由于多种原因)。我的问题是我无法访问整个 obj.conf 文件,并且想知道是否有 .htaccess 等价物,我可以在每个目录上快速传递。目前我正在使用 Application.cfc 强制服务器在加载所请求的页面之前在root中查看 index.cfm ,但这需要 .cfm 文件被传递,因此如果用户提供 / path / to / file 但没有扩展名,则只有404。最后,我想允许用户通过 domain.com/path/to/file ,但提供 domain.com/index.cfm?q1=path&q2=to&q3=文件。有什么想法吗?

2 个答案:

答案 0 :(得分:3)

您可以使用DirectoryIndex指令mod_dir来设置在/ directory / requests上提供的页面。

http://httpd.apache.org/docs/2.2/mod/mod_dir.html

答案 1 :(得分:0)

我不确定iPlanet存在什么,以前不必使用它。但是可以使用像index.cfm / path / to / file这样的url,并通过cgi.path_info变量提取额外的路径信息。不完全是你正在寻找的,但更清洁的查询 - 参数。