coolair
V2EX  ›  问与答

gitea 转移仓库所有权以后,访问旧地址会重定向至新地址,如何设置不重定向,而返回 404?

  •  
  •   coolair · Feb 17, 2025 · 1097 views
    This topic created in 455 days ago, the information mentioned may be changed or developed.
    比如:把组织 a 下的 test 仓库转移给了组织 b ,那么访问 URL/a/test 会重定向至 URL/b/test ,有没有办法关闭并清除这个重定向吗?
    1 replies    2025-02-17 15:53:15 +08:00
    xiri
        1
    xiri  
       Feb 17, 2025 via Android
    这是模仿的 GitHub 的功能,你可以在 a 组织下再建一个名叫 test 的仓库,这样就不会重定向了,然后再把 a 组织下的这个 test 仓库删掉试试?(合理猜测,没有试过)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:48 · PVG 05:48 · LAX 14:48 · JFK 17:48
    ♥ Do have faith in what you're doing.