Page 1 of 1

How can i redirect users to google amp version on mobile?

Posted: Fri May 03, 2019 4:58 am
by vdavidmarques
Hi, i would like to know how to redirect customers to google amp page when they are on mobile. I found many codes on jquery ou javascript, but i think it should be in another way on Opencart 2.3.0.2. Im using IIS 8 so htaccess will not work.
I found this way on jquery http://detectmobilebrowsers.com/mobile

and this way on IIS: https://serverfault.com/questions/22704 ... le-specifi
But how it works to redirect to amp page dynamically. If its on product-1- redirect to amp_product_1

Re: How can i redirect users to google amp version on mobile?

Posted: Sat May 04, 2019 12:50 pm
by rjcalifornia
vdavidmarques wrote:
Fri May 03, 2019 4:58 am
Hi, i would like to know how to redirect customers to google amp page when they are on mobile. I found many codes on jquery ou javascript, but i think it should be in another way on Opencart 2.3.0.2. Im using IIS 8 so htaccess will not work.
I found this way on jquery http://detectmobilebrowsers.com/mobile

and this way on IIS: https://serverfault.com/questions/22704 ... le-specifi
But how it works to redirect to amp page dynamically. If its on product-1- redirect to amp_product_1
Did you try this extension?

https://www.opencart.com/index.php?rout ... n_id=27631