Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Deployment > sitefinity site redirecting to mobile sitefinity site

sitefinity site redirecting to mobile sitefinity site

  • Posted on Mar 8, 2011 (permalink)

    I developed a website in Sitefinity 3.7.  the site works great.  The client wishes to reach to the mobile users by using another site completely designed for mobile users.  The mobile site will even be a different URL. 
    I am a web developer and not a coder.
    How do I set it up where when a mobile user goes to the regular site, they are automatically redirected to the mobile version at a different domain?  I received some help from asp.net but the recommendation was a lot of coding, additional files, and required a newer version of Visual Studio for me to recompile a DLL.  I do not wish to do that.  If there is an option in IIS or in the web.config/global.asax file that can do this, I'd rather go that route.

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Mar 14, 2011 (permalink)

    Hi Robert Williams,

    You can try doing this from Global asax file. You can subscribe to the begin request and check if the request is coming from a mobile device:
    void Application_Start(object sender, EventArgs e)
    {
        BeginRequest += new EventHandler(global_asax_BeginRequest);
    }
     
    void global_asax_BeginRequest(object sender, EventArgs e)
    {
        //check if request is coming from a mobile device and if so redirect to your mobile pages.
    }


    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Deployment > sitefinity site redirecting to mobile sitefinity site