如何将某些SiteMap.xml URL从子域重定向到.htaccess中的主要域
当我将其用作无头CMS时,我在网站的子域上安装了WordPress安装。我有一个主要的应用程序,它消耗了部署到Vercel托管的无头CMS。 Vercel不允许我添加XML站点地图。
我有一些XML站点地点位于子域上。是否可以使用.htaccess将这些站点地点的URL重写/重定向到我的主要域?
假设我的站点地图像这样在子域上 /a>我希望能够在
有办法做到这一点吗?
I have a Wordpress installation on a sub domain of my website as I'm using it as a headless CMS. I have the main app that consumes the headless CMS deployed to Vercel hosting. Vercel doesn't let me add xml sitemaps.
I have some xml sitemaps sitting on the sub domain. Is it possible to use .htaccess to rewrite/redirect the urls of these sitemaps on the sub domain to my main domain?
Assuming my sitemap is on the sub domain like this https://wp.example.net/sitemap.xml and I want to be able to access it at https://example.net/sitemap.xml
Is there a way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论