Skip to main content
made the questions clearer
Link
YWSW
  • 336
  • 2
  • 10

Magento 2 with Varnish sometimes does not redirect HTTP to httpsHTTPS

added the varnish details
Source Link
YWSW
  • 336
  • 2
  • 10

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.).

However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it remains http

How can I force that every single time ourdomain.com will redirect to https?

This is very important for SEO (otherwise Google will think they are two separate pages - http://ourdomain.com and https://ourdomain.com - and will think it is duplicate content).

I have tried flushing and cleaning the cache. I have reindexed.

I have even tested this with 301 redirect programs and they do not register a redirect from http to https (they just show 200 OK for http).

I am using Magento 2.2.5. Varnish is enabled and Pound gets the https pages (ssl termination; via.

Please help

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.).

However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it remains http

How can I force that every single time ourdomain.com will redirect to https?

This is very important for SEO (otherwise Google will think they are two separate pages - http://ourdomain.com and https://ourdomain.com - and will think it is duplicate content).

I have tried flushing and cleaning the cache. I have reindexed.

I have even tested this with 301 redirect programs and they do not register a redirect from http to https (they just show 200 OK for http).

I am using Magento 2.2.5

Please help

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.).

However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it remains http

How can I force that every single time ourdomain.com will redirect to https?

This is very important for SEO (otherwise Google will think they are two separate pages - http://ourdomain.com and https://ourdomain.com - and will think it is duplicate content).

I have tried flushing and cleaning the cache. I have reindexed.

I have even tested this with 301 redirect programs and they do not register a redirect from http to https (they just show 200 OK for http).

I am using Magento 2.2.5. Varnish is enabled and Pound gets the https pages (ssl termination; via.

Please help

Source Link
YWSW
  • 336
  • 2
  • 10

Magento 2 sometimes does not redirect to https

Our Magento 2 is setup with https on all pages (unsecure and secure, "use secure on frontend", etc.).

However sometimes when I enter ourdomain.com it redirects (correctly) to https and sometimes it remains http

How can I force that every single time ourdomain.com will redirect to https?

This is very important for SEO (otherwise Google will think they are two separate pages - http://ourdomain.com and https://ourdomain.com - and will think it is duplicate content).

I have tried flushing and cleaning the cache. I have reindexed.

I have even tested this with 301 redirect programs and they do not register a redirect from http to https (they just show 200 OK for http).

I am using Magento 2.2.5

Please help