I have added 301 redirection in .htaccess file but it is not working in magento 2.3.
Here is my .htaccess code:
# For 404s and 403s that aren't handled by the application, show plain 404 response ErrorDocument 404 /pub/errors/404.php ErrorDocument 403 /pub/errors/404.php Redirect 301 /products https://www.example.com/brickwebb.html
any solution?
This must not be Magento issue. Are you on Apache or Nginx? Did you clear browser cache or tried different browser to test the same?
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
You could try using Magento URL Rewrites rather than .htaccess if there are not too many redirects needed, here's the documentation on the feature: https://docs.magento.com/m2/ce/user_guide/marketing/url-rewrite.html
Hello @PankajS_Magento
You can refer "How to Redirect 301 using Htaccess in Magento" for the solution that works for Magento 2.3 as well!
Hope it is helpful.