We have migrated a website from .NET platform to Magento. We have changed the URL structure of both the websites hence the old URL needs to be redirected to New URL.

For example:

1) Old URL: http://www.example.com/p-20912-nutrasec.aspx

2) New URL: https://www.example.com/nutrasec

Many of our old URL are HTTP which needs to be redirected to HTTPS. I have used Magento URL Custom Rewrite feature to perform redirection. The redirection performed is 301 permanent. Please check the screenshot below

enter image description here

Though redirection works but we are getting multiple redirection for it ie:

1) When user opens http://www.example.com/p-20912-nutrasec.aspx it is redirected [301] to http://www.example.com/nutrasec

2) And then again a second redirection is occured to https://www.example.com/nutrasec which is [302]

This is a huge problem. The configuration done in the admin are as below:

enter image description here

We are using nginx server. It seems to be a problem with Magento Redirection. Any help will be appreciated.

  • 1
    nice to see your nginx part of config. and is your unsecure base url with HTTPS<---- as you have https redirection, this will help a lot. – MagenX Dec 31 '15 at 11:19
  • yes, both base secure and unsecure URL are HTTPS.. – Dexter Dec 31 '15 at 11:35
  • also nginx config just to be sure, redirect part – MagenX Dec 31 '15 at 11:56
  • I am not sure about nginx config.. from where should i extract it.. I am not expert in server handling – Dexter Dec 31 '15 at 12:34
  • how exactly you are going to debug and fix it then? :P – MagenX Dec 31 '15 at 13:14

Your Answer

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

Browse other questions tagged or ask your own question.