In my .htaccess file I use a simple redirect rule.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule SMS SMS.php [L,QSA]
</IfModule>
This works for a simple request with a HTTP-header like
Accept: text/html,*/*
Accept-language: en
But for requests with a header with another Accept-header like
Accept: bla/bla
Accept-language: en
I get a HTTP/1.1 406 Not Acceptable
error.
I can get it to work, adding this to my .htaccess
file
<Files *>
ForceType bla/bla
</Files>
But I'm searching for a solution that accepts any Accept-header
currently I need to know the exact spelling, something like this fails
ForceType */*
Btw. When I access the page directly (http://example.com/SMS.php
) without the rewrite rule it works, independent of the access-header.