Quantcast
Viewing latest article 12
Browse Latest Browse All 24

How to redirect users from a desktop website to a mobile website using Nginx

As a quick note, I just configured this website (alvinalexander.com) to have both a desktop version and a new mobile version. I do this by using Nginx to detect mobile devices and redirect the mobile users from the alvinalexander.com URL to the m.alvinalexander.com URL.

The Nginx mobile redirect configuration

The relevant part of my Nginx configuration is shown here:

read more


Viewing latest article 12
Browse Latest Browse All 24

Trending Articles