Go mobile
Taking Amit’s idea to the next level, here’s how you can make a mobile version of your blog.
Create a folder named m in your blog root—if you have a self-hosted blog. Dump a file named index.php with the following content in it:
<?phpheader('HTTP/1.1 301 Moved Permanently');header( 'Location: http://www.google.com/reader/m/view/feed/http://ckunte.com/feed/atom' ) ;?>- Download this example: /inputfiles/m.txt
Be sure to replace my site's feed address with yours in the code above. Your mobile blog version would now be accessible at this address, for example: yoursite.com/m (or yoursite.com/blog/m depending upon where you created the m subfolder on your host).
I am averse to creating a sudomain just for this, but if you still prefer a subdomain like address, here’s a plugin code I just whipped up.1
<?php/*Plugin Name: Mobile version via Google ReaderPlugin URI: http://ckunte.com/Description: m. subdomain address is redirected to google's mobile version.Author: Chetan KunteVersion: 1.0Author URI: http://ckunte.com/wordpress*/if ( !strstr( $_SERVER['HTTP_HOST'], 'm.' ) )return;header('HTTP/1.1 301 Moved Permanently');header('Location: http://www.google.com/reader/m/view/feed/http://' . trailingslashit(substr($_SERVER['HTTP_HOST'], 2)) . 'feed/atom');exit();?>- Download this example: /inputfiles/moplug.txt
Download the file above2, and rename it to, say, moplug.php and upload it to wp-content/plugins folder. Your mobile site would now be accessible at m.mysite.com—all this without having to create a subdomain.
- Do note that I haven’t been able to test this on my host, since I have a subdomain related problem at the moment, but I believe this code would work. [←]
- Make sure there are no empty spaces after
?>in both the code snippets [←]

Chetan, this is absolutely brilliant.
You subdomain trick works perfect. See http://m.labnol.org/
Jan 27, 08 at 07:00Hi Amit, glad to know it’s useful.
Jan 27, 08 at 09:58[...] Amit Agarwal offers a ten-second solution with the help of Google Reader. Chetan Kunte takes it a step further with a simple PHP index file or better still, a WordPress plugin. [...]
Jan 28, 08 at 18:21Very cool. Let me try it.
Jan 28, 08 at 18:44[...] गो मोबाइल: अपने ब्लॉग का मोबाईल संस्करण बनायें [...]
Feb 9, 08 at 08:51