Turning off AMP

A couple of years ago I turned on AMP rendering of pages here, a sop for Google, which was pushing this as a way of improving the browsing experience for mobile users.

While this was a relatively benign change, and one easy to implement with Drupal Accelerated Mobile Pages module, it never completely felt right, and so today I’ve turned it off.

To do this, I:

  1. Disabled the AMP module in Drupal.
  2. Added a 301 redirect for the AMP pages to the canonical non-AMP version:
  # Redirect AMP pages to canonical version
  RewriteCond %{QUERY_STRING} amp
  RewriteRule ^ %{REQUEST_URI} [L,R=301,QSD]

As a result of this, if you visit this site, via a Google search result, on a mobile device, you’ll see the site as I intend, not in a pared-down AMP view.

Comments

You must have Javascript enabled to use this form.