Hi all! We made a static website using Jekyll on Azure Static Webapp and faced a dilemma on how to properly set up different types of redirects necessary for SEO and not only.
Some of the main redirects that we need are:
Support Non-Trailing Slash Urls - redirect the Urls with / at the end to the url without it
Remove .html - by default the same pages on jekyll are accessible both with .html and without it, I would like to redirect pages with .html to the same url without it
Implement lower case url rule - so that when typing the url all the upper case letters would convert to the lower case by redirect
http errors - 404 page - by default Azure’s page is shown, I would like to show our own version of it.
The main question is how to implement all these properly. Should we configure redirect in IIS (for example using these list: IIS Rewrite Rules and Resources - RewriteGuide) or there is another way to configure them using Routes (Configure Azure Static Web Apps | Microsoft Docs), or any other.
What is the best option for such configuration? I searched and didn’t find any detailed guide on this in the internet.