"Pure" MVC SES URLs, FW/1 and an interesting discovery

292 views
Skip to first unread message

Rob Cawte

unread,
Feb 28, 2010, 2:08:01 AM2/28/10
to framew...@googlegroups.com
I am jumping back into CF coding after some years adrift, and looking
at using FW/1 for a couple of projects.

I want to use "Pure" or "Vanilla" SES URLs in my apps ... by this I
mean something that looks like... http://example.com/section/item -
which seems to be the convention for rails, cf-wheels, php frameworks,
etc.

I added the SES code from "spills" to the framework, and set up my
.htaccess file in the Apache DocumentRoot like so....

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(cfide|files|images|js|css|index.cfm) [NC]
RewriteRule ^(.*)$ /index.cfm/$1

and saw that FW/1 was returning errors saying it could not find the
views or layouts. To my surprise I found that if I added these
folders to the RewriteCond exclude line, the app began to work..

RewriteEngine on
RewriteCond %{REQUEST_URI}
!^/(cfide|files|images|js|css|views|layouts|index.cfm) [NC]
RewriteRule ^(.*)$ /index.cfm/$1

This suggests that Apache is intervening in calls to views and
layouts, which I had always assumed was internal to CF (haven't
started on controllers yet).

Just thought this might be helpful for someone wanting the same effect.

-Rob

Sean Corfield

unread,
Mar 10, 2010, 2:51:49 AM3/10/10
to framew...@googlegroups.com
I have no idea why you're seeing that. The views and layouts are
included directly from CFML code so Apache is absolutely not involved.

There must be something else going on in your code to cause the
behavior you are seeing.

Sean

Grant Powell

unread,
Mar 3, 2017, 11:34:35 AM3/3/17
to framework-one, roba...@gmail.com
No luck. Does not work.

Matt Quackenbush

unread,
Mar 3, 2017, 11:48:03 AM3/3/17
to framew...@googlegroups.com
  1. You replied to a 7-year old thread.
  2. You provided no context.
  3. Apache works incredibly well, as evidenced by the hundreds of millions of servers around the world that have been running it for decades.
  4. FW/1 works incredibly well, as evidenced by the many thousands of apps that have been in service for many years.

If you need assistance with something, you should author a new post, providing all relevant information, and an actual question that can be answered.

https://groups.google.com/forum/#!topic/framework-one/ihpShgeYSQU




--
FW/1 documentation: http://framework-one.github.io
FW/1 source code: http://github.com/framework-one/fw1
FW/1 chat / support: https://gitter.im/framework-one/fw1
FW/1 mailing list: http://groups.google.com/group/framework-one
---
You received this message because you are subscribed to the Google Groups "framework-one" group.
To unsubscribe from this group and stop receiving emails from it, send an email to framework-one+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/framework-one.
For more options, visit https://groups.google.com/d/optout.

Grant Powell

unread,
Mar 3, 2017, 12:20:56 PM3/3/17
to framework-one
1) I am replying to a 7-year old thread as a last ditch effort to solve my problem because there is no current, viable documentation.
2) I am not attacking Apache or FW/1, I am merely stating the fact.
3) And now for the reality check: The development community would be a much more productive environment if developers weren't such defensive egomaniacs #developersAreDivas

Has any developer ever considered they might be wrong or that something they built is NOT the most epic gift to mankind?!

How about developing something that works for once?  Or providing useful documentation?

To unsubscribe from this group and stop receiving emails from it, send an email to framework-on...@googlegroups.com.

Mark Drew

unread,
Mar 3, 2017, 12:24:32 PM3/3/17
to framew...@googlegroups.com
http://www.catb.org/esr/faqs/smart-questions.html

What do you want to get done BTW? I just see you linking to old messages with “This does not work!!!” which is rude as instead of giving me a problem to solve you are making me kinda guess what you need?

Ask a question simply and I we shall help. 

MD 
Reply all
Reply to author
Forward
0 new messages