DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10108>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10108 T= / type= parameter on rewrite rules does not appear to do anything Summary: T= / type= parameter on rewrite rules does not appear to do anything Product: Apache httpd-1.3 Version: 1.3.23 Platform: PC OS/Version: FreeBSD Status: NEW Severity: Normal Priority: Other Component: mod_rewrite AssignedTo: bugs@httpd.apache.org ReportedBy: [EMAIL PROTECTED] Steps to reproduce: 1. In a web server directory, create a file called lizard 2. Create the following .htaccess in that directory RewriteEngine on RewriteRule frog lizard [T=image/gif] 3. From a Web browser or header examining tool, request http://whatever/wherever/frog Expected result: The file 'lizard' is served, with MIME type of image/gif Actual result: The file 'lizard' is served, with MIME type of text/plain (the server's default) If, rather than using an extensionless file, you try to serve a file that already has a type by virtue of its extension (.html), then the file is served as text/html and still not as image/gif. I tested this on my shared hosting account (the only Apache I have access to) on pair.com. Two other people also tried on their own different Apache configurations. (I did also post this to users@httpd.apache.org but nobody responded.) Frankly I know very little about Apache, so I don't really know whether this is a bug or not. Just incidentally (i.e. not part of the bug report but explains why I want it to work), this functionality would be useful in order to serve XHTML files with the appropriate MIME type when using a browser which supports XHTML, but as text/html otherwise, using the following: RewriteEngine on RewriteCond %{HTTP_ACCEPT} application\/xhtml\+xml RewriteRule ^(.+)\.html $1.html [T=application/xhtml+xml] (There are other ways to achieve the same thing but they involve ugliness such as making two copies or a symlink to the file, so it would be nice if this one worked.) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]