Closed EliseiNicolae closed 1 year ago
Currently, for redirecting the user from non-www to www, we're using nginx.
Problem: When the user enters https://radio-crestin.com/sitemap.xml, it will be redirected to the homepage instead of https://www.radio-crestin.com/sitemap.xml.
https://radio-crestin.com/sitemap.xml
https://www.radio-crestin.com/sitemap.xml
Fix: Use pages/_middleware.tsx instead of nginx.
pages/_middleware.tsx
nginx
It was fixed using nginx.
Currently, for redirecting the user from non-www to www, we're using nginx.
Problem: When the user enters
https://radio-crestin.com/sitemap.xml
, it will be redirected to the homepage instead ofhttps://www.radio-crestin.com/sitemap.xml
.Fix: Use
pages/_middleware.tsx
instead ofnginx
.