Rewrite URLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

Office: +598-2-927-2546

Tel: 1-801-212-9493

E-mail: matias.huartamendia@ingeniousamericas.com


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux