Answer the question
In order to leave comments, you need to log in
Remove everything in the request after ***.html excluding /amp/ via htaccess, how to do it?
I found this code for cutting off all characters after .html in the link
RewriteEngine On
RewriteRule (.+?)\.html.+$ https://%{HTTP_HOST}/$1.html [L,R=301]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question