redirect from old trac ticket urls to bitbucket
There are broken links to trac tickets on the wiki. It would be good if http://trac.einsteintoolkit.org redirected a link such as
https://trac.einsteintoolkit.org/ticket/641
to the relevant BitBucket ticket.
This should be doable with an apache mod_rewrite rule https://httpd.apache.org/docs/2.4/rewrite/remapping.html#movehomedirs
Eg:
RedirectMatch "^/tickets/([^/]*)" "https://bitbucket.org/einsteintoolkit/tickets/issues/$1"
Comments (11)
-
reporter -
reporter - changed status to open
@stevenrbrandt any updates on this? This needs a reboot / redeploy of the trac server so needs someone at LSU to take care of it.
-
reporter @Steven R. Brandt any updates on this? This needs a reboot / redeploy of the trac server so needs someone at LSU to take care of it.
-
- changed status to resolved
fixed
-
reporter Ah not quite. My fault though, sorry. I put an extra āsā into the redirect string. The trac ticket URLs are eg https://trac.einsteintoolkit.org/ticket/2135 so it should have been
RedirectMatch "^/ticket/([^/]*)" "https://bitbucket.org/einsteintoolkit/tickets/issues/$1"
-
reporter - changed status to open
-
reporter - changed component to EinsteinToolkit website
There are broken links to trac tickets on the wiki. It would be good if http://trac.einsteintoolkit.org redirected a link such as
https://trac.einsteintoolkit.org/ticket/641
to the relevant BitBucket ticket.
This should be doable with an apache mod_rewrite rule https://httpd.apache.org/docs/2.4/rewrite/remapping.html#movehomedirs
Eg:
RedirectMatch "^/tickets/([^/]*)" "https://bitbucket.org/einsteintoolkit/tickets/issues/$1"
-
- changed status to resolved
fixed
-
reporter - changed status to open
@Steven R. Brandt this is happening again I would guess as a fallout of trying to fix the inaccessible wiki server?
-
reporter - changed status to resolved
Works again.
-
reporter - changed status to closed
- Log in to comment
This apparently (can) works from .htaccess files as well: https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-