I have written some php based wml programs which also output html to a standard browser. All is OK with the html but I have found that, despite including the sendreferer command in my wml script, only the file name is sent as a referer (wap.php) with no domain name in its path.
Hence the .htaccess file, protecting one of my directories, rejects access to wml browsers because the referer is incomplete.
....................htaccess file..................
RewriteEngine on
RewriteCond %{HTTP_REFERER} !.../lci/.
RewriteCond %{HTTP_REFERER} !.../calproj/.
RewriteCond %{HTTP_REFERER} !.../access/.
RewriteCond %{HTTP_REFERER} !.../calendar/.
RewriteRule .* ../calendar/denyaccess.php
MIME Types for WAP
For PHP 4.x, use this:
AddType application/x-httpd-php .wml
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
........................................................
Any ideas on how to solve this?