Hey Scott,
Thank you so much for using the plugin!
It’s really strange.
1. Can you please tell me how are you adding posts in https://www.chord.co.uk/blog/ ?
2. It’s really strange that when I go to https://www.chord.co.uk/product/clearway-analogue-rca/amp/ it redirects me to /?amp – Can you please rewrite the permalinks: https://ampforwp.com/tutorials/flush-rewrite-rules/ – and see if that fixes the issue.
Regards,
Ahmed
Hi There,
Thanks for the fast response.
Just so you know, I save my permalinks after any change I do on the site.
On the products, the redirection from /amp to /?amp was a manual redirection that I enabled to try and fix it. I’ve now turned this off.
On the product_cat archive:
This works: https://www.chord.co.uk/product-category/ranges/clearway/?amp
This does not: https://www.chord.co.uk/product-category/ranges/clearway/amp
On a single product
This works https://www.chord.co.uk/product/clearway-analogue-rca/?amp
This works https://www.chord.co.uk/product/clearway-analogue-rca/amp
And my other issue…
As this is a new build site, we have a few redirects in place for the blog items. We currently have a redirect for all blog/blog-name posts to remove the blog so it becomes /blog-name – we have tested our regex on this and can confirm that it is in fact the plugin that is redirecting from the /blog/amp to /amp
Our regex for the redirect is as follows \/blog\/((?!(page|amp)).*) so it misses anything with “page or “amp”.
We add the blog posts as normal with the permalink structure set to “post name”. The shop permalinks are set to standard.
It would be great if you could have another look at this for me.
Thank you in advance.
Kind regards,
Scott
Hey Scott @scottquested
So, let’s cover one issue at a time.
Have you enabled AMP WooCommerce plugin https://ww.wp.xz.cn/plugins/amp-woocommerce/ ?
Regards,
Ahmed
Hi Ahmed,
Yes, the Woocommerce plugin is enabled.
Regards,
Hi,
I have deactivated the AMP WooCommerce plugin as it has errors on the page and I think it may be down to not having process on the products. We’ll leave that for now and try and fix the homepage/Blog error if that’s ok?
Kind regards,
Hey Scott @scottquested
I’m beginning to understand your question now.
You said:
This works: https://www.chord.co.uk/product-category/ranges/clearway/?amp
This does not: https://www.chord.co.uk/product-category/ranges/clearway/amp
but both URL’s are not working. because the product category doesn’t have the AMP support yet, we are planning to add this in the next update.
Regarding your question to regex, Can you please contact me via [email protected]? So that I can have my lead developer have a look into this and get a personal answer.
Hope it helps,
Regards,
Ahmed