httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matias Huartamendia <matias.huartamen...@ingeniousamericas.com>
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
http://mediawiki.my.domain/mediawiki/index.php/article, and I'm just trying
to get them like this: http://mediawiki.my.domain/mediawiki/article

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
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?mediawiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

Whenever I go to mediawiki.my.domain/mediawiki 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


*https://www.tradehelm.com/ <http://www.tradehelm.com/>*

Office: +598-2-927-2546

Tel: 1-801-212-9493

E-mail: *matias.huartamendia@
<matias.huartamendia@tradehelm.com>ingeniousamericas.com
<http://ingeniousamericas.com>*

Mime
View raw message