httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matias Huartamendia <>
Subject [users@httpd] Rewrite URLs
Date Fri, 21 Feb 2020 16:59:03 GMT
Hey everyone,

Not really sure if I'm doing this properly.

I have a MediaWiki installed on Apache. Everything works fine, but I need
to Rewrite URLs to make them shorter. Default path is, and I'm just trying
to get them like this:

I edited LocalSettings.php on MediaWiki path with:

 $wgScriptPath = "/mediawiki";
 $wgScriptExtension = ".php";
 $wgArticlePath = "{$wgScriptPath}/wiki/$1";
 $wgUsePathInfo = true

And I also have and .htaccess file on /var/www/html with the following:

RewriteEngine On
RewriteRule ^/?mediawiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

Whenever I go to I get a blank page. I
am suspecting this is related to the .htaccess file and not the
mediawiki itself.

Any guidance you can provide me with?

*Matías Huartamendía*

IT Analyst

* <>*

Office: +598-2-927-2546

Tel: 1-801-212-9493

E-mail: *matias.huartamendia@

View raw message