Skip to main content

Posts

Featured

Custom 404 Error Page in Sitecore Headless Topology using SXA

 Hi Friends, Sitecore SXA is a heaven for developers as it comes with out of the box features with most projects require like custom 404 error page. In this blog I will show you full implementation and will also discuss issue like 200 status code on 404 error page. Custom 404 Implementation Step by Step in Sitecore SXA 1. Make a Custom 404 page to be shown 2. Verify  Sitecore.XA.Foundation.ErrorHandling.dll   it should be in your bin with his config also loaded. 3. Go to setting item in Sitecore and update this Page not found field with your custom page Save the changes, and load the cm page in integrated mode. Now you can see your custom 404 page. But wait if you check in network tab the status code of your page it will be shown as 200 GET to fix this issue, add this setting to your config and load this in your sitecore CM and CD. <setting name="RequestErrors.UseServerSideRedirect" value="true" /> and now your custom 404 page will show 404 error code. Happy S

Latest posts

Sitecore JSS Topologies (Headless Topology) Theory and Practical Steps

Common Solr Indexing Problems in Sitecore

Extending Email Action in Workflows for MFA Mail relay

SSO Implementation in Sitecore with External Identity Provider using SAML2.0/ AzureAD

Sitecore JSS Step by Step - Practically creating Layout Service from Scratch

7 Tips for Building Your Sitecore Website Like a Pro

Getting Started with Sitecore JSS: A Comprehensive Guide

Global Site Search Implementation in Component Architecture using Solr

Computed Fields in Sitecore

Error Fix : no parameterless constructor defined for this object