mod_rewrite and modules

Hi all,

Basically, I want root/Forgebox to have the same effect of /root/
index.cfm/Forgebox

Hi Si,

Just add the .htaccess, open the routes.cfm and remove the index.cfm from the baseURL, that’s it.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Hmmm. I’ve done this on two aeperate installs and it still doesn’t work.

Can someone confirm the /forgebox should show the module with sea turned on, rewrites from latest svn in place and baseurl and routes setup? (in practice, not just theory)

Thanks!

Si Forster

I can confirm it works and all I did was add the .htaccess, open the Routes.cfm, remove the index.cfm from the setBaseURL() and then Reinit the framework.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

I had a similar issue yesterday when I updated my app from using M4 to M5. The SES routing stopped working when not using ‘index.cfm’ in the url. I re-uploaded the SES interceptor from M4 and it started working again.

I didn’t have time to look into it further, so I don’t know if it’s related to Si’s issue.

… and I did reinit the framework many times when I updated ColdBox.

This didn’t seem to fix my issue. I’m going to debug the rewrite log and see what’s going on.

Si

Morning,

I’ve tried this on a different host and now I’m getting a constructive error message.

HTTP Status 404 - /index.cfm//forgebox

I cannot reproduce, you will have to help me out here.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

You need to enable wildcard servlet mappings on Tomcat.

In the web.xml for your application (under WEB-INF), add:

  <servlet-mapping>
    <servlet-name>CFMLServlet</servlet-name>
    <url-pattern>/index.cfm/*</url-pattern>
  </servlet-mapping>