Permalink
Browse files

Redirect `/mediawiki/` to wiki main page

Before this change, `/mediawiki` was a 301 to `/mediawiki/` because of CheckSpelling, and `/mediawiki/` was a 403 because Apache thinks you are trying to view the contents of that folder and there is no `index.html` present.

However, clearly someone with a link to this is looking for the `mediawiki` main page.

This redirects a request with no path (beyond `mediawiki`) and no query string to the main page.
  • Loading branch information...
annashipman committed Jul 30, 2017
1 parent 74cd969 commit fc0fa319113e88d7509a0476cef997e5b1460533
Showing with 3 additions and 0 deletions.
  1. +3 −0 mediawiki/.htaccess
@@ -16,6 +16,9 @@ RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.php$ /mediawiki/index.php?title=Main_Page [R,L]

RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ /mediawiki/index.php?title=Main_Page [R,L]

RewriteCond %{QUERY_STRING} (.+)&(.+)
RewriteRule ^(index\.php)$ $1\%3F%1 [L]

0 comments on commit fc0fa31

Please sign in to comment.