aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki/templates/wiki_vhost.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mediawiki/templates/wiki_vhost.conf')
-rw-r--r--modules/mediawiki/templates/wiki_vhost.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mediawiki/templates/wiki_vhost.conf b/modules/mediawiki/templates/wiki_vhost.conf
index 720667c6..1464856f 100644
--- a/modules/mediawiki/templates/wiki_vhost.conf
+++ b/modules/mediawiki/templates/wiki_vhost.conf
@@ -5,3 +5,9 @@ Options +FollowSymLinks
AliasMatch /.*/skins/(.*)$ /usr/share/mediawiki/skins/$1
+RewriteEngine On
+
+RewriteCond %{REQUEST_URI} ^/.*/index.php$
+RewriteCond %{QUERY_STRING} ^title=Special:UserLogin
+RewriteCond %{HTTPS} ^off$
+RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R]