Dzahn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/190132
Change subject: static-bz: rewrite /show_bug.cgi to static HTML
......................................................................
static-bz: rewrite /show_bug.cgi to static HTML
Rewrite old '/show_bug.cgi?id=12345' URLs on static-bugzilla.wm to
bug12345.html files.
Internally (PT) so the URL appears to be like
back on original Bugzilla and users can simply replace "bugzilla"
with "old-bugzilla". Also make links work from activity pages.
Bug:T85140
Change-Id: I68e70e260ed83ed29fcb088d018cd43da52db2c4
---
M modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/32/190132/1
diff --git
a/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
b/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
index 77458da..c7052fa 100644
--- a/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
+++ b/modules/bugzilla/templates/apache/static-bugzilla.wikimedia.org.erb
@@ -6,6 +6,9 @@
ServerName static-bugzilla.wikimedia.org
DocumentRoot /srv/org/wikimedia/static-bugzilla
+ RewriteEngine On
+ RewriteRule ^/show_bug.cgi?id=([0-9]+)$ /bug$1.html [PT]
+
<Directory />
Options FollowSymLinks
AllowOverride None
--
To view, visit https://gerrit.wikimedia.org/r/190132
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68e70e260ed83ed29fcb088d018cd43da52db2c4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits