Thread:Extension talk:MobileFrontend/Howto switch to mobile Version/reply (7)

In my case /var/www/index.php redirects users to /var/www/mediawiki/index.php. So, I modified the /var/www/index/index.php as following:

As you can see this script includes the functions from mobile_detect.php and use them to determine the type of device. If mobile device is detected the users are redirected to the mobile mediawiki version. Hope this helps.