Setup
- MW 1.35
- VisualEditor REL_1_35
Issue
If one wants to use VisualEditor with a short URL like e.g. https://wiki.example.org/Main_Page you will get "Error contacting the Parsoid/RESTBase server (HTTP 404)" Once you add an URL particle (not sure how to call it) like page as in e.g. https://wiki.example.org/page/Main_Page everything works as expected. Thus it appears that currently having this URL particle is required.
works for https://wiki.example.org/page/Main_Page
LocalSettings.php
$wgScriptPath = "/mediawiki"; $wgArticlePath = "/page/$1";
VirtualHost
<IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/?page(/.*)?$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] RewriteRule ^/?$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] </IfModule>
does not work https://wiki.example.org/Main_Page
LocalSettings.php
$wgScriptPath = "/mediawiki"; $wgArticlePath = "/$1";
VirtualHost
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/mediawiki/index.php [L] </IfModule>
Perhaps some extra voodoo is to be added to the rewrite rules to also make something like https://wiki.example.org/Main_Page possible but I do not know what it could be.
Created this report to make you aware however I suspect that this may be a dupe already.