301 Redirect in htaccess from directory level to back

I want to redirect

domain.com/category/amp/
domain.com/category/subcategory/amp/

to

domain.com/category/
domain.com/category/subcategory/

Due to facing some issues, i removed amp from my website. But now all these amp pages showing as 404 errors.

How to redirect all amp pages to related page using htaccess.

Please help

Read more here: 301 Redirect in htaccess from directory level to back

Leave a Reply

Your email address will not be published. Required fields are marked *