2xup.org:lab

iPhone Template Set (1.0)

iPhone Template Set is building a suitable page for the display on iPhone/iPod touch.

Author: Taichi Kaminogoya Last update: 10 Sep, 2008 12:58(JST)

Requirement

Download

Installation

  1. Copy the contents of iPhoneTemplate/mt-static/* into /path/to/mt/mt-static/
  2. Copy the contents of iPhoneTempkate/plugins/* into /path/to/mt/plugins/

.htaccess Sample

If you want to have a peculiar page to iPhone displayed with same URL as PC.

Your blog URL style is http://example.com/, the code is added to .htaccess (http://example.com/.htaccess)

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod)
RewriteCond %{REQUEST_URI} !^/m/
RewriteRule ^(.*)\.html$ /m/$1.html [L]

Your blog URL styles is http://example.com/blog/, the code is added to .htaccess (http://example.com/blog/.htaccess)

Rewriteengine onq
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod)
RewriteCond %{REQUEST_URI} !/m/
RewriteRule /blog/(.*)\.html$ /blog/m/$1.html [L]