标签: .htaccess redirect
想要将所有这些URL重定向到其父级:
example.com/page/amp/--> example.com/page/ example.com/another-page/amp/--> example.com/another-page /
尝试了以下方法:
RewriteRule ^(.*)/amp/$ /$1 [L,NC,R=302]