Google app engine Google应用程序引擎上的sitemap.xml

Google app engine Google应用程序引擎上的sitemap.xml,google-app-engine,web,search-engine,web-crawler,yaml,Google App Engine,Web,Search Engine,Web Crawler,Yaml,我有我的谷歌应用引擎网站的以下yaml文件 application: <my-app-id> version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /sitemap.xml static_files: static/sitemap.xml upload: static/sitemap.xml - url: / static_files: static/index.ht

我有我的谷歌应用引擎网站的以下yaml文件

application: <my-app-id>
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /sitemap.xml
  static_files: static/sitemap.xml
  upload: static/sitemap.xml

- url: /
  static_files: static/index.html
  upload: static/index.html

- url: /
  static_dir: static
但是,当我部署应用程序时,导航到下一页只会将我重定向到index.html(不可能下载xml文件)

http://.net/sitemap.xml
http://www..net/sitemap.xml

为什么本地版本的行为与部署的版本不同?如何使文件在部署的版本中可用?

Google App Engine,很可能没有正确重定向。尝试通过:
http://www..net/sitemap.xml
查看是否有效。

结果表明,问题是由域重定向引起的。如果我直接访问应用程序,请通过以下方式访问

http://<app-id>.appspot.com/
http://.appspot.com/

那么一切都好了。显然,域名托管服务处理重定向的方式有问题。

yourdomain.net是否有可能重定向到www.yourdomain.net?不,无论我使用它时是否使用www子域,都没有区别。不管怎样,我都无法访问该文件。
 http://<my-domain>.net/sitemap.xml
 http://www.<my-domain>.net/sitemap.xml
http://<app-id>.appspot.com/