It seems a similar solution was used for FDO: http://www.clearchain.com/blog/posts/cgit-upgrade-gitweb-retired
Can you provide the exact url you want redirected?
A start would be: http://pkgs.fedoraproject.org/gitweb/?p=xorg-x11-server.git => http://pkgs.fedoraproject.org/cgit/xorg-x11-server.git
But there's a giant set of URL redirects in the URL in the description.
yes, we have a large number of them in place already.
Sadly, they are very fragile and break other things, so I hate messing with them now. ;)
I've added this one, hopefully it won't cause any problems.
Let me know if you see any issues with it.
Just noticed this, when #4205 is already filed...
I meant generic redirections like
FROM: http://git.fedorahosted.org/git?p=$PROJECT.git;a=commit;h=$HASH
TO: http://git.fedorahosted.org/cgit/$PROJECT.git/commit/?id=$HASH
Just sticking with canonical order of per-handler arguments in FROM might be enough, I guess.
These redirects were breaking things like git clones over http, or causing weird errors with cgit or just causing confusion. Or not working when people used different ordering of old gitweb arguments or causing
This was changed over a year ago now... is it that hard to search for and use the new one? Cant you simply search for the hash in cgit? Why is this an issue now almost a year later?
In fact I noticed it much much earlier, but thought this will settle down in time (RERO style) back then. Today I hit it again, and thought I'd report it, finally.
I am not familiar with freedesktop.org migration, do they still manage the compatibility? Their set of rewrite rules seems pretty impressive.
Would it make sense to at least redirect to the working cgit homepage for the project regardless of the URL tail? Would definitely be a step forward and would make the grumpy cat at least a bit happier.
Btw. my primary concern is git.fedorahosted.org, which may be referenced more often from various sources (e.g., bugzilla) than the original pkgs.fedoraproject.org (which is more for auxiliary book-keeping than development as such).
ok, if you want to propose specific redirects and are willing to help us debug them, please feel free.
It's mod_rewrite.