Tim Starling has submitted this change and it was merged.
Change subject: (bug 45005) Redirect wikidata.org to www.wikidata.org
......................................................................
(bug 45005) Redirect wikidata.org to www.wikidata.org
Bug: 45005
Change-Id: I7bb872fd9cf6c1da7655f77def7f3ce43975218a
---
M main.conf
M redirects.conf
2 files changed, 8 insertions(+), 1 deletion(-)
Approvals:
Tim Starling: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/main.conf b/main.conf
index d037a78..623ac25 100644
--- a/main.conf
+++ b/main.conf
@@ -56,7 +56,7 @@
# Wikidata
<VirtualHost *>
ServerName www.wikidata.org
- ServerAlias wikidata.org *.wikidata.org
+ ServerAlias *.wikidata.org
DocumentRoot "/usr/local/apache/common/docroot/wikidata"
diff --git a/redirects.conf b/redirects.conf
index 3df4f66..b65ceec 100644
--- a/redirects.conf
+++ b/redirects.conf
@@ -90,6 +90,7 @@
wikibooks.de www.wikibooks.de *.wikibooks.com \
wikibooks.org \
wikicitaty.cz *.wikicitaty.cz \
+ wikidata.org \
wikidisclosure.com *.wikidisclosure.com \
wikidisclosure.org *.wikidisclosure.org \
wikidruhy.cz *.wikidruhy.cz \
@@ -614,6 +615,12 @@
RewriteCond %{HTTP_HOST} (^|\.)mediawiki\.com$
RewriteRule ^(.*)$ http://www.mediawiki.org$1 [R=301,L,NE]
+ # bug 45005
+ # redirect wikidata.org to www.wikidata.org
+ # lang code subdomain redirect to be done later
+ RewriteCond %{HTTP_HOST} =wikidata.org
+ RewriteRule ^(.*)$ http://www.wikidata.org$1 [R=301,L,NE]
+
RewriteCond %{HTTP_HOST} =nostalgia.wikimedia.org
RewriteRule ^(.*)$ http://nostalgia.wikipedia.org$1 [R=301,L,NE]
--
To view, visit https://gerrit.wikimedia.org/r/49069
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7bb872fd9cf6c1da7655f77def7f3ce43975218a
Gerrit-PatchSet: 12
Gerrit-Project: operations/apache-config
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: ArielGlenn <[email protected]>
Gerrit-Reviewer: Asher <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: Denny Vrandecic <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Jeremyb <[email protected]>
Gerrit-Reviewer: Lydia Pintscher <[email protected]>
Gerrit-Reviewer: RobLa <[email protected]>
Gerrit-Reviewer: Tim Starling <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits