How to Redirect all AMP Pages to Non-AMP Pages

#1
Hi,
I deleted the AMP plugin and I would like to Redirect all AMP Pages to Non-AMP Pages.

I added this to htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]

But it does not work. Would you please advise?

Thanks,
Tony
 

Cold-Egg

Administrator
#2
Rules look fine to me, do you have any examples of the AMP URLs?
By the way, please remember do the graceful restart the web server after the changing in .htaccess file
 
Top