Return - Entire thread - Last 10 posts

[Handheld] The mobile reader support and requests thread (73)

18 Name: Anonymous Advisor : 2007-12-21 12:27 ID:eUjpr7d1

my phone's browser is netfront and i noticed that the links for the boards point to instead of this causes me to get an error like this whenever i click one of the links:
Not Acceptable
An appropriate representation of the requested resource /req/mobile could not be found on this server.
Available variants:

Additionally, a 406 Not Acceptable error was encountered while trying to use an ErrorDocument to handle the request.

clicking the link takes me to the board, but it's sorta annoying to have that extra step.

also, netfront on my phone can handle the normal version of the site reasonably well, except that it doesn't support frames, some of the stylesheets don't work quite right, and it can't load the js file because when it requests the file from the server it gets a page that says "The Requested Page can not be displayed" instead of the script. i think this is probably because the browser doesn't put */* in the accept header, which is something that EVERY OTHER FUCKING BROWSER I'VE EVER SEEN THAT SENDS AN ACCEPT HEADER DOES.

anyway, here's the workaround for that that i use on my site, so things like this and this work just fine on my phone:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} !(text|\*)/(javascript|\*)
RewriteRule \.js$ - [T=text/plain]