不同的改写模式CFWheels网站根目录 [英] Different rewrite mode for CFWheels website root

查看:213
本文介绍了不同的改写模式CFWheels网站根目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在研究了以下问题的建议。

I need an advice on researching the following issue.

车轮网站有集(URL重写协作=开)配置,一切都看起来不错,除了根页。

Wheels website has set(URLRewriting="On") configured, everything looks fine except root page.

linkTo 内置的所有链接看起来像 website.tld /控制器/动作

All links built with linkTo look like website.tld/controller/action.

但在A /模式切换到部分和链接看起来像 website.tld / index.cfm /控制器/动作。有趣的是,如果默认路由页面显式访问(/网页/指数在这种情况下) - 正确的网址建

But on a / mode "switched" into the partial and links look like website.tld/index.cfm/controller/action. Interestingly, if default route page accessed explicitly (/pages/index in this case) -- URLs built properly.

网站在Tomcat的Ubuntu的下运行的Apache2与标准车轮重写直接在虚拟主机配置配置的规则,作为一种解决方法,以已知问题的.htaccess。

Website is running in Tomcat with Apache2 under Ubuntu, standard Wheels rewriting rules configured directly in a vhost config, as a workaround to known issue with .htaccess.

从哪里开始?什么变数检查和如何调试呢?

Where to start? What variables to check and how to debug this?

感谢。

UPD 所有我可以看到,现在是,当默认操作直接访问没有路线:首页在调试输出。不知道如何使用这些信息,我有一个轮子很小的经验。

UPD All I can see for now is that when default action accessed directly there's no Route: home in the debug output. Not sure how to use this info, I have very small experience with Wheels.

推荐答案

彼得斯没有创造的答案,我会做这个而不是仅仅以纪念解决的问题。所有的荣耀克里斯,任何方式。

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.

车轮通常会忽略,如果你不重写rewrite.cfm设置(URL重写协作=开)。确保请求通过rewrite.cfm路由,而不是index.cfm

这意味着你需要检查的 CGI 的有问题的页面和修复解决方法重写规则(也有少数人在Tomcat + CFWheels,我认为)。范围

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).

这篇关于不同的改写模式CFWheels网站根目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆