Apache 重定向Github页面上的zip文件

Apache 重定向Github页面上的zip文件,apache,.htaccess,github-pages,http-redirect,Apache,.htaccess,Github Pages,Http Redirect,我有一些页面在Apache服务器中运行,我有以下重定向: <IfModule mod_rewrite.c> RewriteRule ^file\.zip$ https://github.com/user/repo/releases/download/v0.1/file.zip [R=302] </IfModule> 重写规则^file\.zip$https://github.com/user/repo/releases/download/v0.1/file.zi

我有一些页面在Apache服务器中运行,我有以下重定向:

<IfModule mod_rewrite.c>
   RewriteRule ^file\.zip$ https://github.com/user/repo/releases/download/v0.1/file.zip [R=302]
</IfModule>

重写规则^file\.zip$https://github.com/user/repo/releases/download/v0.1/file.zip [R=302]
它工作得很好。我的想法是,我的服务器中没有zip文件,只需重定向即可。我可以使用一个短url,比如mydomain.com/file.zip。我之前说过,它工作得很好

问题是: 我正在将这些页面移动到Github页面,我不知道是否可以这样重定向,特别是到zip文件。我知道返回文本的文件可以这样做,比如.html、.md等,但我不知道如何处理zip文件

ps:实际上我把zip文件放在我的回购协议的Github pages文件夹中,但我不想这样做。我只想重定向它

谢谢