coren has submitted this change and it was merged.
Change subject: Redirect pywikipedia.org to Tools
......................................................................
Redirect pywikipedia.org to Tools
Bug: 58803
Change-Id: I5084c1238a22958627c609274c8fa00f367ceaf5
---
M redirects.conf
M redirects.dat
2 files changed, 14 insertions(+), 3 deletions(-)
Approvals:
coren: Looks good to me, approved
jenkins-bot: Verified
diff --git a/redirects.conf b/redirects.conf
index 63367a9..6a3a604 100644
--- a/redirects.conf
+++ b/redirects.conf
@@ -220,6 +220,8 @@
*.jobs.wikipedia.org \
*.mobile.wikipedia.org \
*.wap.wikipedia.org \
+ pywikipedia.org \
+ *.pywikipedia.org \
shop.wiktionary.org \
store.wiktionary.org \
shop.wikiquote.org \
@@ -1552,5 +1554,11 @@
# rewrite *.wap.wikipedia.org //*.m.wikipedia.org
RewriteCond %{HTTP_HOST} ^(.+)\.wap\.wikipedia\.org$
RewriteRule .* %{ENV:HTTP_X_Forwarded_Proto}://%1.m.wikipedia.org$0
[R=301,L,NE]
+ # funnel *pywikipedia.org //tools.wmflabs.org/pywikibot/
+ RewriteCond %{HTTP_HOST} =pywikipedia.org
+ RewriteRule .
%{ENV:HTTP_X_Forwarded_Proto}://tools.wmflabs.org/pywikibot/ [R=301,L,NE]
+ # funnel *pywikipedia.org //tools.wmflabs.org/pywikibot/
+ RewriteCond %{HTTP_HOST} ^(.+)\.pywikipedia\.org$
+ RewriteRule .
%{ENV:HTTP_X_Forwarded_Proto}://tools.wmflabs.org/pywikibot/ [R=301,L,NE]
</VirtualHost>
# vim: sts=4 sw=4 autoindent syn=apache
diff --git a/redirects.dat b/redirects.dat
index 1a67e7e..59adfa7 100644
--- a/redirects.dat
+++ b/redirects.dat
@@ -1,6 +1,6 @@
# domain-redirects.dat -- The oyster knife of URL manipulation
# vim: ft=conf ts=12
-#
+#
# Each non-blank line consists of a rule with whitespace-separated
# parameters. The first parameter is the command name, which may be funnel,
# rewrite or override.
@@ -10,10 +10,10 @@
# Redirect a whole domain (or set of domains) to a single URL
#
# rewrite <domain-wildcard> <dest>
-#
+#
# Rewrite the URLs in one domain (or set of domains) to URLs in another
# domain with an optional path prefix. A trailing slash in <dest> is ignored.
-# A leading slash is implied in the source path.
+# A leading slash is implied in the source path.
#
# override <domain-wildcard><path> <dest>
#
@@ -477,3 +477,6 @@
funnel mobile.wikipedia.org //m.wikipedia.org
rewrite *.mobile.wikipedia.org //*.m.wikipedia.org
rewrite *.wap.wikipedia.org //*.m.wikipedia.org
+
+# pywikipedia.org (bug #58803).
+funnel *pywikipedia.org //tools.wmflabs.org/pywikibot/
--
To view, visit https://gerrit.wikimedia.org/r/109237
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5084c1238a22958627c609274c8fa00f367ceaf5
Gerrit-PatchSet: 4
Gerrit-Project: operations/apache-config
Gerrit-Branch: master
Gerrit-Owner: Tim Landscheidt <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Tim Landscheidt <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits