简体   繁体   中英

Installed and Activate Amp plugin – but nothing different and no amp pages detected

I have just installed and activated the Amp plugin ( wordpress.org/plugins/amp ).I had no problem during the installation process.

I cleared cache and checked my site on a mobile device to see how it now displays and there is no difference.

Is there more I need to do after activating the plugin?

Try this to redirect your users i they are on mobile (i addition to our comments ):

RewriteEngine On
RewriteCond %{REQUEST_URI} !/amp$ [NC]
RewriteCond %{HTTP_USER_AGENT} (android|blackberry|googlebot\-mobile|iemobile|iphone|ipod|\#opera\ mobile|palmos|webos) [NC]
RewriteRule ^([a-zA-Z0-9-]+)([\/]*)$ https://example.com/$1/amp [L,R=302]

Taken from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM