I am working with .net frame work 3.5 with asp.net & c#
i have folders in my project named iPhone, ipad and desktop...
if the request is coming from desktop, then it will redirect to http://www.example.com/ (as a general website) &
if the request is coming from iPhone... then it should redirect as http://iphone.example.com/ instead as http://www.example.com/iphone/
in the same way it should work for ipad also...
here the URL prefix should change from 'WWW' to 'ipad' or 'iPhone' depending on the request.. and i kept all the ipad, iPhone related pages in the corresponding folders, so it should stay with in the same web server, but only the URL should change..
i.e., for example, if request is coming from ipad, then it should redirect as
http://ipad.example.com/ipad/home.aspx..
before doing this, I checked from where the request is coming, i.e., using the
userAgent , now if the request is coming from ipad,
then it should redirect as above..
please help me
thanks
shameer ali shaik