We have a strange issue in Magento2.

All the URL on our website are accessible both by Upper case and Lower case. For example: http://www.example.com/sweatshirts is also accessible by http://www.example.com/SWEATSHIRTS

Our SEO team recommends that the URL accessible with UPPERCASE should be 301 redirected to lower case.

Can any one please guide me on how this can be done.


Pretty sure you can just create a custom URL rewrite from the backend under Marketing > URL Rewrites and click the button Add URL rewrite.

  • request path should be the uppercase path
  • target path should be the lowercase path
  • choose 301 redirect in the redirect dropdown

Unfortunately if you have a lot of categories this is gonna be painful.

Going the .htaccess way if you're on Apache is probably better

| improve this answer | |
  • Custom URL is an option if you we have few URL certainly not with 20K URL's. Also, I wonder if this is a bug or a feature in Magento2 as Magento1 used to do 404 – Dexter Jul 23 '16 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.