在像 GoDaddy 和 Yahoo 这样的典型 DNS 中,301 重定向可以这样做:
http://mysite.com/abc到http://www.mysite.com/abc
然而,这似乎是不可能的;应用程序可以otherdomain知道subfolder吗?
更新:
我的意思是那些 DNS 重定向,特别是从裸域到 www 域
更新:
我设法将裸域从 转发http://mysite.com到http://www.mysite.com/index.html那么我可以通过 index.html 中的 javascript 获取请求的子文件夹吗?
还是重定向丢失了最初请求的子文件夹?