On local Windows 10 apache installation %{DOCUMENT_ROOT} on windows creates 403 error.
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
# Enable the rewrite engine
RewriteEngine On
# Short URL for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
You don't have permission to access /G:/WebSites/pw/w/index.php on this server.
[Sun Nov 18 10:55:39.710853 2018]
[core:error]
[pid 11584:tid 1264] (20023)
The given path was above the root path:
[client 127.0.0.1:20427] AH00127: Cannot map GET / HTTP/1.1 to file
This configuration however works fine:
## http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
# Enable the rewrite engine
RewriteEngine On
# Short URL for wiki pages
RewriteRule ^/?wiki(/.*)?$ /w/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ /w/index.php [L]