Skip to main content
November 8, 2008
Question

apache cf8 execute non .cfm file extensions

  • November 8, 2008
  • 1 reply
  • 362 views
Using apache 1.3.33 and cold fusion 8, I've been trying to get rewrite rules to work. Specifically, rewrite rules to execute cold fusion files.

Example:

ReWriteRule ^/ontario.cfm "d:/inetpub/wwwroot/bb_on.cfm"

will work

(ie: when someone types www.mysite.com/ontario.cfm it will execute bb_on.cfm properly

but

ReWriteRule ^/ontario "d:/inetpub/wwwroot/bb_on.cfm"

it will NOT work since www.mysite.com/ontario is not a CFM file and thus does not execute.

How can these rewrite rules be executed if they don't end in .cfm?

J
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 14, 2008
    jrobbins wrote:
    > Using apache 1.3.33 and cold fusion 8, I've been trying to get rewrite rules to
    > work. Specifically, rewrite rules to execute cold fusion files.
    >
    > Example:
    >
    > ReWriteRule ^/ontario.cfm "d:/inetpub/wwwroot/bb_on.cfm"
    >
    > will work
    >
    > (ie: when someone types www.mysite.com/ontario.cfm it will execute bb_on.cfm
    > properly
    >
    > but
    >
    > ReWriteRule ^/ontario "d:/inetpub/wwwroot/bb_on.cfm"
    >
    > it will NOT work since www.mysite.com/ontario is not a CFM file and thus does
    > not execute.
    >
    > How can these rewrite rules be executed if they don't end in .cfm?

    Enable verbose logging in apache (RewriteLogLevel 9) and check the logs.

    --
    Mack