Sorta off-topic, but it's all to get files with no extension to be run
through PHP...

Okay, since DefaultType is just plain broken on
FreeBSD4.1Release&Apache1.3.14, I tried to simulate it with mod_rewrite:

RewriteRule !.*\..* - [T=application/x-httpd-php]

This actually works and everything (which is amazing since Regex and I never
get along too well...)

Only problem is, *that* breaks the whole "auto-completion" of trailing
slashes on directories and/or DirectoryIndex.

I tried to fix that using:

RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

which I pretty much stole verbatim from:
http://httpd.apache.org/docs/misc/rewriteguide.html
but it didn't seem to have any real effect...
Actually, it seems to sometimes add a trailing slash to the files that have
no extension, but the page loads okay...

I tried moving the trailing slash fix both before and after my DefaultType
rule, and it didn't seem to behave any differently.

Any Rewrite gurus in the house?  Is there a "mod_rewrite under FreeBSD
mailing list" somewhere?...

PS
DefaultType on FreeBSD really is broken.  Honest.
I copied and pasted the DefaultType from the httpd.conf line above, so I
know I spelled that right.
And ditto for the mime/type.
Besides, I can use ForceType, and it "works", only ForceType breaks all the
stuff that *does* have an extension, like GIFs.
And I tried moving DefaultType to several different places within
httpd.conf:  Where the default had it, inside the Directory I want changed,
above that Directory, below it, at the very bottom...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to