views:

330

answers:

3

I want to redirect some URL to mobile version, if the user agent is a mobile.

Example :

klikkarir.com/jawa-pos/5215/lowongan-call-center-accounting-administration-pt-asia-teleservices-januari-2010.html

will redirect to :

m.klikkarir.com/5215/lowongan-call-center-accounting-administration-pt-asia-teleservices-januari-2010/

somebody help me.

+1  A: 

The best method is to use WURFL to detect if a mobile device is hitting your page, serveral (php,java,c++) interfaces exist.

If you want to have simpeler but less accurate solution a quick useragent comparison might be sufficient, example.

stimpie
what i need is redirect for specific URL, not redirect all to mobile version (if user agent is mobile)
Agus Puryanto
A: 

You could try the Mobify Me service, there is a free version too.

Off topic, Start accepting answers

ILMV
A: 

Hello

You can use http://www.51degrees.mobi/Products/NETMobileAPI/tabid/86/Default.aspx it is free open source asp.net mobile api which helps is tracking whether request is coming from mobile devices and redirects user to mobile optimized .aspx pages without changing any existing web pages. It makes use of WURFL the most upto date mobile device database. Along with this it also gives you detailed capability information of mobile device making request which you can use to customize pages for each mobile device.

You can see articles for same here http://dotnetslackers.com/articles/aspnet/Mobile-Device-Detection-and-Redirection-Using-ASP-NET-MVC.aspx

Amit Patel