The Google redirect works well.
And adding
- Code: Select all
AddType text/html .jnlp .kk
does nothing.
To summarize my last test:
The working directory is /test.
This is the /test/.htaccess file:
- Code: Select all
Options +FollowSymLinks -MultiViews
AddType text/html .jnlp .kk
RewriteEngine On
RewriteBase /test/
RewriteRule ^foo\.(jpg|png|jnlp|kk)$ foo.php
When I request foo.jpg or foo.png:
if the file exists, I get the real file (an image), not the php (the rewrite rule does not work)
if the file doesn't exists, the rewrite rule works (I get the php)
And when I request foo.jnlp or foo.kk:
if the file exists I get again the file, with Content Type="application/x-java-jnlp-file" for foo.jnlp and Content-Type="text/plain" for foo.kk (neither the RewriteRule nor the AddType directive work).
if the file doesn't exists the RewriteRule works neither and I get a 404 error
In conclusion, the AddType directive never works (one problem more) and the RewriteRule only works if there is not a real file behind the url and the type is a "normal" one.