douhong4452 2017-06-04 22:06
浏览 33
已采纳

如何在子域中上传根域中的文件

I've a domain and a subdomain with this structure:

Domain: mydomain.com
Subdomain: m.mydomain.com (which "mydomain.com/mobile/" is the folder)

While I'm on mydomain.com, I upload images to the folder "images", this is the structure:

mydomain.com/images/image.jpg

And I've no problems with it, because the folder /images/ is in the domain.

Now, when I'm in m.mydomain.com, how can I upload images to the domain folder (mydomain.com/images) and not to the subdomain folder (m.mydomain.com/images)?

Thank you guys

PS. I'm using Routing with both domains, with the index.php as "router"

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 C#调用dll形参问题
      • ¥15 Unity 怎么创建树形菜单
      • ¥15 使用DWY100k数据集对UEA进行测试,出现报错:IndexError: index 125000 is out of bounds for axis 0 with size 95500
      • ¥15 前端vue实现根据图片url生成pdf文件
      • ¥15 RfidReader资源Q个
      • ¥20 user-agent是否是唯一的,有没有可能相同
      • ¥15 关于#开会#的问题,如何解决?(语言-c++)
      • ¥15 关于#二十四点问题#的问题
      • ¥15 运行kitex的demon出错(求大家解决)
      • ¥15 开发一个类似 typora 这样的软件需要多少钱?