SAP Knowledge Base Article - Preview

2383959 - How to perform a 301 redirect with Spring Security

Symptom

When enforcing HTTPS via Spring Security for all/some pages that are SEO relevant (such as Product and Category pages), the server returns a 302 temporary redirect code.

In such case, a 301 permanent redirect is desired, so that the search engines index the new locations and don't keep the old ones.


Read more...

Environment

SAP Hybris - all Accelerators

Product

SAP hybris Commerce 5.0.3 ; SAP hybris Commerce 5.0.4 ; SAP hybris Commerce Suite 5.2 ; SAP hybris Commerce Suite 5.3 ; SAP hybris Commerce Suite 5.4 ; SAP hybris Commerce Suite 5.5 ; SAP hybris Commerce Suite 5.5-1 ; SAP hybris Commerce Suite 5.6 ; hybris Commerce Suite 4.4 ; hybris Commerce Suite 4.5 ; hybris Commerce Suite 4.6 ; hybris Commerce Suite 4.7 ; hybris Commerce Suite 4.8 ; hybris Commerce Suite 5.0 ; hybris Commerce Suite 5.1 ; hybris Commerce Suite 5.1.1

Keywords

hybris, Spring security, 301 redirect , KBA , CEC-COM-CPS-COR , CPS Core (SAP Commerce) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.