Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Mobile redirect to a broken m. site: how to find and fix it

PRF-189High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Years ago, many sites built a separate mobile version on a subdomain such as m.example.com. A rule on the server, CMS or a plugin checks the visitor's user agent (the text a browser sends to identify itself) and redirects phones to that copy. Desktop visitors stay on the main site.

The issue appears when the m. site is neglected. It may return a 404 or 500 error, redirect back to the main site in a loop, show old content, miss the lead form, or point to a domain that no longer has a valid certificate. The main site can look perfect on desktop while every phone user hits a dead end.

Why it costs you leads or sales

Most paid and social clicks happen on phones. If the redirect fails, those visitors land on an error page or a stripped-down copy. You pay for the click and get nothing back.

Redirects can also drop tracking. If the redirect discards gclid, fbclid or UTM parameters, your ad and analytics platforms cannot attribute the visit. Your reports then undercount mobile conversions, and ad bidding learns from bad data.

Where a broken m. redirect loses the visitor
  1. Ad click on phoneLands on www.example.com/offer
  2. Mobile redirectUser agent rule sends phone to m.example.com
  3. m. page404, 500, loop or no form
  4. Lead or purchaseNever reached

The visitor clicks an ad on a phone, but the redirect sends them to a page that fails.

A mobile redirect drops the tracking data

The phone visitor is redirected and the campaign parameters disappear on the way.

Mobile vs desktop conversionsExample numbers
Mobile vs desktop conversions (example)Desktop: 40 conversions per week; Mobile (broken redirect): 3 conversions per week; Mobile (fixed): 35 conversions per week0153140335DesktopMobile (broken redire…Mobile (fixed)conversions per week

Example: desktop converts normally while mobile collapses because of the broken redirect. Numbers are illustrative.

How to check if your site has it

Desktop testing will not show this problem, because the rule depends on the device. You need to look at your site as a phone.

Test the mobile redirect
  1. Open your key landing page on a real phone

    Use mobile data as well as Wi-Fi. Note the final URL in the address bar. If it contains m. or mobile., a redirect is active.

  2. Check with the browser's device mode

    In Chrome, open DevTools, click the device toolbar icon, choose a phone and reload. Open the Network tab and look for 301 or 302 responses and the final status code.

  3. Test from the command line

    Request the page with a phone user agent and follow redirects (see the snippet below). Look at every Location header and the final status.

  4. Test with campaign parameters

    Add ?utm_source=test&gclid=abc123 to the URL and check whether those parameters survive the redirect.

  5. Test the form on the m. page

    Submit a test lead and confirm it arrives in your inbox or CRM.

Follow the redirect chain as an iPhonebash
curl -sIL -A "Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1" "https://www.example.com/offer?utm_source=test&gclid=abc123" | grep -iE "^(HTTP|location)"

How to fix it

The best fix is to retire the m. site and use one responsive site that adapts to any screen. One URL per page is also simpler for search engines and for tracking. If you cannot do that now, repair the m. site and the redirect so no visitor hits an error.

Remove or repair the mobile redirect
  1. Find where the redirect is defined

    Common places: server config (.htaccess, nginx), a CMS or mobile plugin, a CDN rule, a script in the page head, or your DNS host.

  2. Make sure the main site works on phones

    Confirm the page has a viewport meta tag and a layout that fits small screens before you remove anything.

  3. Remove the user agent redirect

    Delete or disable the rule that sends phones to the m. host.

  4. Redirect old m. URLs to the main site

    Add a 301 redirect from each m. URL to its matching desktop URL, keeping the query string, so old links and bookmarks still work.

  5. Retest on a phone

    Repeat the checks above, including the parameter test and a test form submission.

Where to remove the redirect by platform
  1. Disable mobile redirect plugins

    In Plugins, look for mobile switcher or mobile theme plugins and deactivate them. Check your caching plugin for a separate mobile cache or mobile redirect setting.

  2. Check redirect plugins

    If you use a redirect manager, delete rules that match mobile user agents.

Redirect the old m. host to the main site (keeps the query string)nginx
server {
    listen 443 ssl;
    server_name m.example.com;
    # ssl_certificate and ssl_certificate_key go here
    return 301 https://www.example.com$request_uri;
}
Phone visitor journey

Before

  • Phone is redirected to m.example.com
  • Page returns an error or has no form
  • gclid and UTMs are dropped
  • Mobile leads near zero

After

  • Phone stays on www.example.com
  • Responsive page shows the full form
  • Parameters stay in the URL
  • Mobile leads recorded and attributed

How to confirm it's fixed

Confirmation checklist
  • A phone loads your landing page and the address bar still shows the main domain
  • The curl test with a phone user agent returns 200 with no redirect to an m. host
  • Old m. URLs return a single 301 to the matching main URL
  • gclid and UTM parameters remain in the final URL
  • A test form submission from a phone reaches your inbox and CRM
  • The conversion shows in your analytics real-time report or tag debugger

How to prevent it happening again

Prevention habits
  • Keep a list of every subdomain and what it is for, and retire unused ones
  • Review redirect rules whenever you change theme, CDN, hosting or plugins
  • Test key pages on a real phone after each release
  • Keep ad destination URLs on the main domain, never on an m. host
  • Renew certificates for every host that still receives traffic
  • Run a scheduled mobile journey test so a change is caught within a day

How FunnelGuard handles this

FunnelGuard detects this issue only partly. If you have set up a mobile journey, the robot visitor runs that journey on a schedule and checks each step. If a mobile redirect sends it to a page that errors, or the form or button is missing, the step fails. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

What it does not do: it does not scan your server or DNS for every redirect rule, and it does not test every device or user agent a real visitor might use. Without a mobile journey, the check does not run. It also cannot judge whether an old m. page that still loads is outdated or off brand.

Frequently asked questions

Questions people ask

Why are my mobile visitors being redirected to an m. site?

A rule on your server, CMS, plugin or CDN checks the visitor's user agent and sends phones to a separate mobile subdomain. It is often left over from before responsive design was common. Check your server config, mobile plugins and redirect settings to find it.

Why is my m. site showing a 404 or error?

The m. site was likely abandoned while the redirect stayed active. The host may point to a removed server, an expired certificate or pages that no longer exist. Remove the redirect and serve phones from your main responsive site.

Do I still need an m. subdomain?

No. A single responsive site works on all screen sizes and is simpler to maintain and track. Separate mobile sites mainly add duplicate content, extra redirects and more chances for failure.

How do I test a mobile redirect from my desktop?

Use Chrome DevTools device mode and watch the Network tab, or run curl with a phone user agent and the -L flag to follow redirects. A real phone on mobile data is the most reliable test.

Can a mobile redirect remove my gclid and UTM parameters?

Yes. If the redirect rule does not pass the query string, parameters like gclid and utm_source are lost. Your analytics and ad platforms then cannot attribute mobile conversions to the campaign.

How do I redirect old m. URLs to my main site?

Add a 301 redirect on the m. host that sends each URL to the matching main-site URL and keeps the query string. In nginx, use return 301 with $request_uri. Keep a valid HTTPS certificate on the m. host.

Can FunnelGuard detect a broken mobile redirect?

Partly. If you have a mobile journey set up, FunnelGuard runs it and fails the step when the redirect leads to an error or a missing form. It does not scan your server rules or test every device, so check those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: if mobile journey exists.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.