0

How to redirect to 301 instead of 302, My Magento site contains 302 redirects and its effects to SEO.

So I want to do a permanent redirect (301).

My Magento website converted HTTP to HTTPS and the problem is when browsing with "HTTP" first it 302 then 200.

Its fine to browse URL with "https" it shows 200

0

Add something like this in the .htaccess file.

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://yourdomain.com/$1 [L,R=301]

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.