Different rewrite mode for CFWheels website root

给你一囗甜甜゛ 提交于 2019-12-06 04:28:42

I have a very similar setup and ran into the same problem just now. As a temporary workaround I found that by changing line 294 of wheels/global/public.cfm from

loc.returnValue = application.wheels.webPath & ListLast(request.cgi.script_name, "/");

to

loc.returnValue = application.wheels.webPath;

that linkTo() built a path that worked with URL rewriting. I'll ping some friends more familiar with Wheels to see if there's a patch required to fix this.

Since Chris Peters did not create the answer, I'll do this instead just to mark the question resolved. All glory to Chris, any way.

Usually Wheels will ignore set(urlRewriting="On") if you're not rewriting to rewrite.cfm. Make sure that requests are routing through rewrite.cfm and not index.cfm

It means that you need to check the CGI scope on the problematic pages and fix the rewriting workaround rules (there are few of them for Tomcat+CFWheels, I think).

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