Hi.
I have several sites with HostAramada, which are using the LiteSpeed Server.
I would like to redirect AMP to non-AMP.
When I use a plugin like RankMath it works.
But when I put the code mentioned in .htacess posted on several forums, it doesnt. work.
I also contacted the hosting support. But to no use.
Could you please tell what is wrong.
I'm using this redirection code in .htaccess.
Why its not working and what is the correct code for redirection?
I have several sites with HostAramada, which are using the LiteSpeed Server.
I would like to redirect AMP to non-AMP.
When I use a plugin like RankMath it works.
But when I put the code mentioned in .htacess posted on several forums, it doesnt. work.
I also contacted the hosting support. But to no use.
Could you please tell what is wrong.
I'm using this redirection code in .htaccess.
Code:
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]