archwiki: move $wgScriptPath to /w
The wiki's LocalSettings.php
currently uses $wgScriptPath = "";
. Since defaulting to the new Vector skin, this has caused issues since MediaWiki hardcodes /w
in various places because that's the $wgScriptPath
what the Wikimedia Foundation wikis use. See https://phabricator.wikimedia.org/T288686
@klausenbusk suggested moving the wiki to /w
. Now that we have the short URL (!335 (merged)), doing it would not be an issue.
Rereading the old discussion about short URLs, it mentioned the issue of blocking web crawlers with robots.txt
from accessing .php
URLs. If all that stuff would reside in /w
, then the robots.txt
directive would simple.
- Pros:
- Simpler
robots.txt
which would hopefully move use closer to getting rid of the Lockdown extension. - Upstream's nginx configuration example (https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx) can be adapted more easily. Related to !428 (comment 30830).
- We would avoid workarounds for hardcoded paths, since upstream obviously doesn't test different configurations.
- Simpler
- Cons:
- We would be giving in to the Wikimedia way of doing things.