I need an advice on researching the following issue.
Wheels website has set(URLRewriting="On")
configured, everything looks fine except root page.
All links built with linkTo
look like website.tld/controller/action
.
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.
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?
Thanks.
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.
set(urlRewriting="On")
if you're not rewriting torewrite.cfm
. Make sure that requests are routing throughrewrite.cfm
and notindex.cfm
. – Soulsearchingindex.cfm
. I've fixed the rewriting rules and now everything is fine, please post your comment as answer, I will mark it accepted. – Jacintha