{"id":114,"date":"2017-03-08T13:13:42","date_gmt":"2017-03-08T13:13:42","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?p=114"},"modified":"2020-09-12T13:21:50","modified_gmt":"2020-09-12T13:21:50","slug":"how-to-redirect-all-mobile-visitors-to-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/","title":{"rendered":"How to Redirect All mobile visitors to AMP"},"content":{"rendered":"<p>In order to redirect all mobile visitors to the AMP version of your site, you need to Enable an option called Mobile Redirection.<\/p>\n<p><strong>Follow the steps below to Redirect All mobile visitors to AMP:<\/strong><\/p>\n<ul>\n<li>From your WordPress dashboard, go to your sidebar. Head on over to <strong>AMP option panel<\/strong> -&gt; Click on <strong>Settings<\/strong> -&gt; <strong>Advance Settings<\/strong> -&gt; Turn ON Mobile Redirection and then click on the &#8220;<strong>Save Changes<\/strong>&#8221; button.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-14894\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2.png\" alt=\"\" width=\"1234\" height=\"613\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2.png 1234w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-300x149.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-768x382.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-1024x509.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-50x25.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-60x30.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-2-100x50.png 100w\" sizes=\"(max-width: 1234px) 100vw, 1234px\" \/><\/a><\/p>\n<ul>\n<li><strong>Mobile Redirection:<\/strong> Once you enable this option it will be Redirect All mobile visitors to AMP.<\/li>\n<\/ul>\n<p>Make sure you also enable<\/p>\n<ul>\n<li>Homepage Support: ON<\/li>\n<li>Archive Page Support: ON<\/li>\n<\/ul>\n<p>Above the two option you will find in the <strong>WordPress Dashboard<\/strong>\u00a0-&gt;\u00a0<strong>AMP<\/strong>\u00a0-&gt;\u00a0<strong>Settings<\/strong>\u00a0-&gt;\u00a0<strong>General\u00a0<\/strong>-&gt; Once you enable &#8220;<strong>Homepage<\/strong>&#8221; and \u201c<strong>Archives[Category &amp; Tags]<\/strong>\u201d option inside \u201c<strong>Category<\/strong>\u201d and &#8220;<strong>Tags<\/strong>&#8221; option will be display and then click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-16475\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7.png\" alt=\"\" width=\"1230\" height=\"620\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7.png 1230w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-300x151.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-1024x516.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-768x387.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-50x25.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-60x30.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-7-100x50.png 100w\" sizes=\"(max-width: 1230px) 100vw, 1230px\" \/><\/a><\/p>\n<p>This way you can redirect all mobile visitors to AMP version of your website.<\/p>\n<h3><strong>Mobile Redirection and Cache plugin<\/strong><\/h3>\n<p>First of all, you need to separate cache file for the Mobile device and Desktop device.<\/p>\n<p>Separate cache files for mobile devices and desktop in case you use one of the plugins mentioned below.<\/p>\n<p>Once your site is loads mobile device or Desktop device it will serve a separate cache file for the different device.<\/p>\n<h5>Here is the list of cache plugin which supports the Mobile redirection.<\/h5>\n<ol>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#1-how-to-enable-mobile-device-caching-in-wp-rocket\">WP Rocket<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#2-how-to-enable-mobile-device-caching-in-wp-super-cache\">WP Super Cache<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#3-how-to-enable-mobile-device-caching-in-w3-total-cache\">W3 Total Cache<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#4-how-to-enable-mobile-device-caching-in-litespeed-cache\">Litespeed cache<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#5-how-to-enable-mobile-device-caching-in-wp-fastest-cache\">WP Fastest Cache<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#6-how-to-enable-mobile-device-caching-in-sg-optimizer\">SG optimizer<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#7-how-to-enable-mobile-device-caching-in-swift-performance\">Swift Performance<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#8-how-to-enable-mobile-device-caching-in-wp-optimize-clean-compress-cache\">WP-Optimize \u2013 Clean, Compress, Cache<\/a><\/li>\n<\/ol>\n<p><strong>Does Not support the Mobile redirection.<\/strong><\/p>\n<ol>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#1-reason-why-breeze-cache-not-supports-mobile-redirection-in-amp\">Breeze cache<\/a><\/li>\n<li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-redirect-all-mobile-visitors-to-amp\/#2-reason-why-cloudflare-not-supports-mobile-redirection-in-amp\">Cloudflare<\/a><\/li>\n<\/ol>\n<h4 class=\"plugin-title\"><mark style=\"background-color: #f9fbe7;\">1. Reason why Breeze Cache not supports Mobile redirection in AMP<\/mark><\/h4>\n<p>Breeze Cache does not allow mobile redirection functionality due to this it will not work in AMP. If you really need mobile redirection feature in amp then you have to disable breeze cache<\/p>\n<h4 class=\"plugin-title\"><mark style=\"background-color: #f9fbe7;\">2. Reason why Cloudflare not supports Mobile redirection in AMP<\/mark><\/h4>\n<p>Cloudflare install in the server-side because of that reason it works on the high property and it does not allow mobile redirection and it will server the desktop version only. So please keep in mind that if you want mobile redirection then you need to disable Cloudflare and you cannot have both Cloudflare caching and mobile redirection at a time.<\/p>\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding: 10px;\"><strong>Note:<\/strong> Above this plugin does not support mobile cache.<\/p>\n<p>If you have an issue regarding with the above plugin for Mobile redirection then\u00a0Please leave your comments below.<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\"><strong>1) How to enable mobile device <\/strong>caching <strong>in <\/strong>WP Rocket<\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a> plugin and activated then follow these steps:<\/p>\n<p><span style=\"color: #800000;\"><strong>1.<\/strong><\/span> Go to <strong>WordPress Admin Area<\/strong> -&gt;<strong> Settings<\/strong> -&gt; <strong>WP Rocket<\/strong> -&gt; <strong>Cache<\/strong> -&gt; <strong>Mobile Cache<\/strong>.<\/p>\n<p><strong><span style=\"color: #800000;\">2<\/span>. Enable caching for mobile devices:<\/strong> First, you have to select this option then it will show <strong>Separate cache files for mobile devices<\/strong>\u00a0option.<\/p>\n<p><strong><span style=\"color: #800000;\">3.<\/span> Separate cache files for mobile devices: <\/strong>Once you select this option WP Rocket will create separate cache file for mobile devices.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-8115\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket.png\" alt=\"\" width=\"1353\" height=\"615\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket.png 1353w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-300x136.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-768x349.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-1024x465.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-60x27.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket-100x45.png 100w\" sizes=\"(max-width: 1353px) 100vw, 1353px\" \/><\/a><\/p>\n<p><strong><span style=\"color: #800000;\">4.<\/span> <\/strong>Click on the save change button.<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\">2) How to enable mobile device caching in WP Super Cache<\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\">WP Super Cache<\/a> plugin and activated then follow these steps:<\/p>\n<p><strong><span style=\"color: #800000;\">1.<\/span><\/strong> Go to <strong>WordPress Admin Area<\/strong> -&gt;<strong> Settings<\/strong> -&gt;<strong>WP Super Cache<\/strong> \u00a0-&gt;Click the\u00a0<strong>Advanced<\/strong> tab.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-8910\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2.png\" alt=\"\" width=\"1351\" height=\"623\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2.png 1351w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-300x138.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-768x354.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-1024x472.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2-100x46.png 100w\" sizes=\"(max-width: 1351px) 100vw, 1351px\" \/><\/a><\/p>\n<p><span style=\"color: #800000;\"><strong>4.<\/strong><\/span> By default, you should see the Mobile Device Support checkbox checked. If not, check the <strong>checkbox<\/strong>\u00a0and\u00a0<strong>Save<\/strong>\u00a0the changes.<\/p>\n<p><strong><span style=\"color: #800000;\">5.<\/span><\/strong> Purge WP Super Cache&#8217;s cache<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\">3) How to enable mobile device caching in W3 Total Cache<\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\">W3 Total Cache<\/a> plugin and activated then follow these steps:<\/p>\n<p><span style=\"color: #800000;\"><strong>1.<\/strong><\/span> Once installing W3 Total Cache plugin you will see the Performance option in WordPress dashboard.<\/p>\n<p><span style=\"color: #800000;\"><strong>2.<\/strong><\/span> Go to <strong>WordPress dashboard<\/strong> -&gt;<strong> Performance <\/strong>\u00a0-&gt;<strong>User Agent Groups<\/strong> \u00a0-&gt;Enable this option in the phone and click on the save button.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-8940\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1.png\" alt=\"\" width=\"1336\" height=\"627\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1.png 1336w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-300x141.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-768x360.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-1024x481.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1-100x47.png 100w\" sizes=\"(max-width: 1336px) 100vw, 1336px\" \/><\/a><\/p>\n<h3><mark style=\"background-color: #f9fbe7;\"><strong>4) How to enable mobile device <\/strong>caching <strong>in <\/strong>Litespeed cache<\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\">Litespeed cache<\/a> plugin and activated then follow these steps:<\/p>\n<p><strong><span style=\"color: #800000;\">1.<\/span> <\/strong>Once installing Litespeed cache plugin you will see the Litespeed cache option in WordPress dashboard.<\/p>\n<p><span style=\"color: #800000;\"><strong>2.<\/strong><\/span> Go to the <strong>LiteSpeed Cache plugin&#8217;s<\/strong> -&gt;<strong> Settings <\/strong><span style=\"color: #000000;\">-&gt;<\/span>\u00a0Click on the &#8220;<strong>Cache<\/strong>&#8221; tab<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-10165\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3.png\" alt=\"\" width=\"1337\" height=\"615\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3.png 1337w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-300x138.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-768x353.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-1024x471.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3-100x46.png 100w\" sizes=\"(max-width: 1337px) 100vw, 1337px\" \/><\/a><\/p>\n<p>Scroll down a little to see this option<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-10167\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3.png\" alt=\"\" width=\"1161\" height=\"485\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3.png 1161w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-300x125.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-768x321.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-1024x428.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3-100x42.png 100w\" sizes=\"(max-width: 1161px) 100vw, 1161px\" \/><\/a><\/p>\n<p><strong><span style=\"color: #800000;\">3.<\/span><\/strong> Enable the &#8220;<strong>Cache Mobile<\/strong>&#8221; settings click on the &#8220;<strong>Save Changes<\/strong>&#8221; button.<\/p>\n<p><span style=\"color: #800000;\"><strong>4.<\/strong><\/span> Purge LiteSpeed Cache&#8217;s cache<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\">5) How to enable mobile device caching in WP Fastest Cache<\/mark><\/h3>\n<p><span style=\"color: #800000;\">\u00a0<\/span>Once you install <a href=\"https:\/\/wordpress.org\/plugins\/wp-fastest-cache\/\">WP Fastest Cache<\/a> \u00a0plugin and activated then follow these steps:<\/p>\n<p><strong><span style=\"color: #800000;\">1.<\/span><\/strong> Once installing WP Fastest Cache plugin you will see the WP Fastest Cache option in WordPress dashboard.<\/p>\n<p><strong><span style=\"color: #800000;\">2.<\/span><\/strong> Go to the<strong> Go to WordPress Admin Area -&gt; WP Fastest Cache<\/strong> -&gt; <strong>Settings<\/strong> &gt; Check &#8220;<strong>Mobile<\/strong>&#8221; Option &gt; after that click on the &#8220;<strong>Submit<\/strong>&#8221; button.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-12335\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1.png\" alt=\"\" width=\"971\" height=\"614\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1.png 971w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1-300x190.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1-768x486.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1-50x32.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1-60x38.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1-100x63.png 100w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><\/p>\n<p><strong><span style=\"color: #800000;\">3.<\/span><\/strong> Purge WP Fastest Cache\u2019s cache<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\"><strong>6) How to enable mobile device <\/strong>caching <strong>in <\/strong>SG optimizer<\/mark><\/h3>\n<p>Once you install and activated <a href=\"https:\/\/wordpress.org\/plugins\/sg-cachepress\/\">SG optimizer plugin<\/a> mobile redirection will work perfectly no need to configure anything.<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\"><strong>7) How to enable mobile device <\/strong>caching <strong>in Swift Performance<\/strong><\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/swiftperformance.io\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Swift Performance<\/strong><\/a><mark style=\"background-color: #f9fbe7;\"><strong>\u00a0<\/strong><\/mark>plugin and activated then follow these steps:<\/p>\n<p><strong>1.<\/strong>\u00a0Go to\u00a0<strong>WordPress Admin Area<\/strong> -&gt;\u00a0<strong>Swift Performance<\/strong> -&gt; <strong>Settings<\/strong> -&gt; <strong>Caching<\/strong> -&gt; <strong>Separate Mobile Device Cache<\/strong><\/p>\n<p><strong>2. Separate Mobile Device Cache: <\/strong>Once you select this option Swift Performance will create separate cache file for mobile devices.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-17308\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2.png\" alt=\"\" width=\"1271\" height=\"631\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2.png 1271w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-300x149.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-1024x508.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-768x381.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-50x25.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-60x30.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/7-2-100x50.png 100w\" sizes=\"(max-width: 1271px) 100vw, 1271px\" \/><\/a><\/p>\n<p><strong>3. <\/strong>Click on the Save change button.<\/p>\n<h3><mark style=\"background-color: #f9fbe7;\"> 8) How to enable mobile device caching in WP-Optimize \u2013 Clean, Compress, Cache <\/mark><\/h3>\n<p>Once you install <a href=\"https:\/\/wordpress.org\/plugins\/wp-optimize\/\">WP-Optimize \u2013 Clean, Compress, Cache<\/a> plugin and activated then follow these steps:<\/p>\n<p><strong>1.<\/strong>\u00a0Go to\u00a0<strong>WordPress Admin Area<\/strong>\u00a0-&gt;<strong>\u00a0Settings<\/strong>\u00a0-&gt;\u00a0<strong>WP <mark style=\"background-color: #f9fbe7;\">Optimize <\/mark><\/strong>-&gt; <strong>Cache<\/strong> -&gt; Check this &#8220;<strong>Generate separate files for mobile devices<\/strong>&#8221; option.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-17802\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5.png\" alt=\"\" width=\"1201\" height=\"572\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5.png 1201w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-300x143.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-1024x488.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-768x366.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-50x24.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-5-100x48.png 100w\" sizes=\"(max-width: 1201px) 100vw, 1201px\" \/><\/a><\/p>\n<p><strong>3. <\/strong>Click on the Save change button.<\/p>\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n<div>\n<div class=\"hkb-article__content\">\n<div class=\"hkb-article__content\">\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In order to redirect all mobile visitors to the AMP version of your site, you need to Enable an option called Mobile Redirection. Follow the steps below to Redirect All mobile visitors to AMP: From your WordPress dashboard, go to your sidebar. Head on over to AMP option panel -&gt;&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":[],"ht-kb-category":[84],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/114"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":151,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/114\/revisions"}],"predecessor-version":[{"id":17808,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/114\/revisions\/17808"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=114"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}