我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

重定向桌面下载程序的站点文件

i temporarily change place for static files on site. But this files must have access from old URL, i've create a script that make's redirect to the right place, but this files are downloading by third-part program.

The problem is that program ignoring redirect. I tryed to use permanent redirecting but no success.

Okay, so a redirect doesn't work.

What you can do is read the file in PHP and output it directly. You can use the function readfile() to do that.

readfile($filename);

近期文章

  • 找到附近顶部的“n”坐标
  • Zend框架表单,上传文件问题
  • php preg_match模式问题,正则表达式模式
  • vue-preview 和 better-scroll冲突
  • 安卓开发JDBC连接数据库No static method metafactory错误怎么解决?
  • 用Htaccess和php改变URL结构的问题
  • Doctrine能否使用generateModelsFromDb检测数据库中的n-m关系?
  • 将SQL Server Varbinary字段转换为MYSQL,保持数据完整
  • 删除上传的zip文件中多余的空目录
  • 从Php调用Msbuild - 错误的代码页和文化
  • 数组,需要通过键排序
  • 我怎样才能在curl中设置cookie
  • PHP和Javascript Web服务
  • $ _SESSION [ '用户'] - >使用getURL()
  • jQuery递归函数,用于上传许多文件,同时为用户提供一些反馈
  • 使用php在ajax中上传文件
  • 分页链接无法正常工作
  • 获取外部页面中的所有类别
  • 是否可以从Linux访问COM对象
  • 有谁知道如何在Phalanger中显示额外的智能感知?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华