Extension:MobileFrontend/Configuring browser auto-detection

This document explains how a site admin can enable a mobile site for their mediawiki extension such that when a user visits the site from a mobile device they are automatically redirected to the mobile view rather than the desktop view.

Option 1: out the box support
By checking out the latest version of MobileFrontend with the latest version of core you will get this out of the box and require no additional steps

Option 2: Set up an alternative domain
The $wgMobileUrlTemplate variable allows you to setup an alternative url for the mobile site.

Option 3: Use Varnish
The configuration files used on the WMF cluster can be found here

Option 4: Apache Redirects
The website http://detectmobilebrowsers.com/ provides an easy way to redirect between two domains.