In Apache Subversion's .htaccess we have this RedirectMatch rule:

RedirectMatch ^/issue[^A-Za-z0-9]?(\d+)$ 
https://issues.apache.org/jira/browse/SVN-$1

It redirects a URL like
  https://subversion.apache.org/issue/4567
to
  https://issues.apache.org/jira/browse/SVN-4567

Why? Human-friendly, technology-neutral, project-owned URLs. Previously we used 
a completely different issue tracker (Bugzilla/Issuezilla hosted at a different 
site) and a corresponding rewrite rule. The redirect enabled some of our 
references to issues to remain stable when we migrated to a different tracker. 
That's just one of the reasons for it, perhaps not the most important one.

But... a redirect gets us less than half way, because it doesn't map the URLs 
displayed in the browser back the other way. In practice, the URLs we write in 
email, in code comments, etc. are often copied straight from the browser; we 
don't bother to manually translate them back to neutral form.

So... How can we do this properly? I assume it requires native support from 
Jira, which I assume exists because its the sort of thing enterprise 
deployments would want.

More generally, I would like to discuss and learn about anybody's efforts to 
achieve anything similar for any of a project's web resources -- wiki pages, 
commits, mailing list posts, etc. (What should I call this topic?)

-- 
- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
For additional commands, e-mail: dev-h...@community.apache.org

Reply via email to