Error pages are set in apache configs too, so just change that line...

Matthew P. Smith wrote:
Hi, I have this in the conf:
<IfModule dir_module>
    DirectoryIndex index.cfm
</IfModule>

I am running coldfusion 9. I am tyring to use the onMissingTemplate function to call a custom 404. The application server does not invoke this function for directory calls, so I need to redirect to /index.cfm

On Wed, Aug 11, 2010 at 5:21 PM, David Ricar <r...@ethernet.cz <mailto:r...@ethernet.cz>> wrote:

    I'd use default index and extend it for .cfm as this:

    DirectoryIndex index.html index.cgi index.pl <http://index.pl>
    index.php index.xhtml
    index.htm index.cfm

    Cheers
    David

    Matthew P. Smith wrote:

        I need to rewrite requested urls from this:

        domain.com/some-directory/ <http://domain.com/some-directory/>
        <http://domain.com/some-directory/>

        to

        domain.com/some-directory/index.cfm
        <http://domain.com/some-directory/index.cfm>
        <http://domain.com/some-directory/index.cfm>


        Can someone provide an example?  I need it to apply to all
        directory only requests.

        I looked here, but did not see how to do it.

        http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

        <http://httpd.apache.org/docs/2.0/misc/rewriteguide.html>My
        apache knowledge is very limited.



    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server
    Project.
    See <URL:http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
    <mailto:users-unsubscr...@httpd.apache.org>
     "   from the digest: users-digest-unsubscr...@httpd.apache.org
    <mailto:users-digest-unsubscr...@httpd.apache.org>
    For additional commands, e-mail: users-h...@httpd.apache.org
    <mailto:users-h...@httpd.apache.org>




--
Regards,
Matthew Smith
MS Data Systems, Inc. - Mobile AL <http://www.msdatasystems.com>
Mobile AL Web Design Company <http://www.mobile-al-web-design.com/ms-data-systems-mobile-al/mobile-al-web-design/mobile-al-web-design.cfm>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to