What Is Device Redirect?
A device redirect sends visitors to different destination URLs based on their device type — desktop, mobile, or tablet. The server inspects the User-Agent header to determine the device and redirects accordingly.
Why It Matters
Device redirects were once the primary way to serve different experiences to mobile and desktop users. A site would redirect smartphone visitors to m.example.com while desktop users stayed on www.example.com.
Today, responsive design handles most of this, but device redirects are still used for:
- Redirecting to an app store (iOS → Apple App Store, Android → Google Play)
- Sending mobile visitors to a simplified version of a complex web application
- Forwarding a domain to different platforms per device
How It Works
- Visitor requests
https://example.com - Server reads the
User-AgentHTTP header - Server detects “iPhone” in the User-Agent string → mobile device
- Server responds with a 302 redirect to
https://m.example.com
Like geo redirects, device redirects typically use 302 status codes because the destination varies by visitor.
Device Redirects vs Responsive Design
| Factor | Device Redirect | Responsive Design |
|---|---|---|
| Separate URLs | Yes (m.example.com) | No (same URL) |
| SEO complexity | High (duplicate content risk) | Low (one URL per page) |
| Maintenance | Two separate sites | One site with CSS |
| User-Agent dependency | Yes | No |
| Google recommendation | Discouraged | Preferred |
Common Remaining Use Cases
| Scenario | Desktop Destination | Mobile Destination |
|---|---|---|
| App Store redirect | Website landing page | App Store / Google Play |
| Event check-in | Full schedule page | Mobile check-in form |
| Web app | Full dashboard | Simplified mobile view |
How Domain Forward Relates
Domain Forward performs standard redirects — same destination for all devices. If you need per-device routing, you’d handle that at the application level on your destination. Domain Forward ensures the initial HTTPS redirect works reliably regardless of device.
Related Terms
Related Features
Frequently
asked questions
Much less than before. Responsive web design (CSS media queries) handles most device differences without redirects. Device redirects are now mainly used when desktop and mobile have completely separate platforms — like redirecting mobile users from a website to an app store listing.
The server reads the User-Agent header from the HTTP request, which contains information about the browser and operating system. Patterns like 'iPhone', 'Android', or 'iPad' indicate mobile or tablet devices.
Google recommends responsive design over device-based redirects. If you must use them, Google advises using 302 redirects (not 301) and ensuring Googlebot's mobile and desktop crawlers can access both versions.
Still Confused? Try It Free.
Set up your first domain forward in under 5 minutes. Free plan includes 5 domains.