WordPress.org

Ready to get started?Download WordPress

Forums

"No such site" on mobile devices (2 posts)

  1. heatgord@gmail.com
    Member
    Posted 1 year ago #

    I'm trying to make this site mobile friendly and have installed WPTouch: http://www.littleroundschoolhouse.com

    I've tested using MobiReady and I'm getting an error message about "Incorrect or missing MIME types"

    full error:

    The MIME types sent by servers give very important information to browsers as to how to treat a document. If incorrect MIME types are sent with a document, it may prevent the browser from correctly interpreting the document and failing to render a document.
    
    For XHTML-MP, the recommended MIME type is application/vnd.wap.xhtml+xml or application/xhtml+xml. Unlike HTML, XHTML-MP should not be served as text/html.
    
    Web servers are often set up correctly for common document types such as HTML and CSS, but often do not have the correct doc types for XHTML-MP. Please refer to mobiForge for instructions on how to set up your MIME types correctly.
    
     FAIL
    MIME type for main document: text/vnd.wap.wml; charset=utf-8

    I've checked my .htaccess file and I seem to have this base covered. Does anyone have an idea of what may be causing this issue?

    Here is a copy of my .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    ###[==MOBIAPLUSHASH_<%DOMAIN_HASH%>=]###
    
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:X-WAP-PROFILE} !^$ [OR]
    RewriteCond %{HTTP:PROFILE} !^$ [OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*(Alcatel|Asus|Android|BlackBerry|Ericsson|Fly|Huawei|i-mate|iPAQ|iPhone|iPod|LG-|LGE-|MDS_|MOT-|Nokia|Palm|Panasonic|Pantech|Philips|Sagem|Samsung|Sharp|SIE-|Symbian|Vodafone|Voxtel|WebOS|Windows\s+CE|ZTE-|Zune).*$ [NC,OR]
    RewriteCond %{HTTP_ACCEPT} application/vnd.wap.xhtml\+xml [NC,OR]
    RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC]
    RewriteCond %{SERVER_PORT} !^443$
    RewriteCond %{SERVER_NAME} ^www\.(.*)$
    RewriteRule ^(.*) http://m.%1/ [L]
    
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:X-WAP-PROFILE} !^$ [OR]
    RewriteCond %{HTTP:PROFILE} !^$ [OR]
    RewriteCond %{HTTP_USER_AGENT} ^.*(Alcatel|Asus|Android|BlackBerry|Ericsson|Fly|Huawei|i-mate|iPAQ|iPhone|iPod|LG-|LGE-|MDS_|MOT-|Nokia|Palm|Panasonic|Pantech|Philips|Sagem|Samsung|Sharp|SIE-|Symbian|Vodafone|Voxtel|WebOS|Windows\s+CE|ZTE-|Zune).*$ [NC,OR]
    RewriteCond %{HTTP_ACCEPT} application/vnd.wap.xhtml\+xml [NC,OR]
    RewriteCond %{HTTP_ACCEPT} text/vnd.wap.wml [NC]
    RewriteRule ^(.*) http://m.%{HTTP_HOST}/ [L]
    
    ###[=MOBIAPLUSHASH_<%DOMAIN_HASH%>==]###
  2. BraveNewCode Inc.
    Member
    Posted 1 year ago #

    If you're using that site to test your mobile theme, you won't get accurate results as it will likely be testing your desktop theme. WPtouch serves your mobile theme ONLY when a mobile device is detected.

Topic Closed

This topic has been closed to new replies.

About this Topic