redirect non-existing directory request to that directory with file name appended

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Right now I have this:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.cfm [L]

Which works, but does not do what I want

Rather than redirecting to the root index.cfm, I would like to have it directed to the nonexistent directory with "\index.cfm" appended.  Sounds weird, I know, but this will trigger the onMissingTemplate component in coldfusion, rather than giving me the standard apache 404.

so /directory/item-1/ should go to /directory/item-1/index.cfm

Thank you.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux