I have a website and a netlify function hosted on the same domain in Netlify
Basically this netlify function will dynamically create a sitemap for the site.
So i have written a redirect rule in __redirects file.
/sitemap.xml /.netlify/functions/getSiteMap 200
Expectation is i wanted to trigger the function when someone hits www.mydomain.com/sitemap.xml
Is it possible to implement such type of pass through URL or a vanity URL ?
P.S : 301 redirect works fine , but i do not wish to have 301 redirect to that function url
If the sitemap.xml , 301 redirects to the netlify function, will google be able to crawl the sitemap.xml