I found this clipping code for all characters after .html in the Remove all link in the query after ***. Html via htaccess

 RewriteEngine On RewriteRule (.+?)\.html.+$ http://%{HTTP_HOST}/$1.html [L,R=301] 

He does what he needs without affecting the links of the form ...***.html?123 which is great. But the site has more links ...***.html/amp/

What should be the htaccess code to exclude clipping if there is /amp/

    0