Jump to content

Topic on Manual talk:Short URL

80.255.7.101 (talkcontribs)

I hope anyone can help me. I have a hosted webspace and I have installed MediaWiki without any extensions in https://abcd.com/wiki

when go on the set I will be redirected to https://abcd.com/wiki/index.php/Hauptseite (it is a german wiki). But I want the short url https://abcd.com/wiki/Hauptseite

I have made a .htaccess File in the https://abcd.com/wiki/ folder with this:

RewriteEngine On

RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA]

RewriteRule ^wiki/*$ wiki/index.php [L,QSA]

RewriteRule ^wiki$ wiki/index.php [L,QSA]

And in the LocalSettings.php I set:

$wgScriptPath = "/wiki";

$wgArticlePath = "$wgScriptPath/$1";

When I now go the wiki I get the error I will redirected to https://abcd.com/wiki/Hauptseite

and get this error:

Not Found

The requested URL /wiki/Hauptseite was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have no more ideas... Thank you for help a frustrated man ;)

85.106.107.70 (talkcontribs)

did you able to solve that? I have the same problem either

85.106.107.70 (talkcontribs)
80.62.119.211 (talkcontribs)

In the OP's post he says he is using a hosted webspace, therefore the https://shorturls.redwerks.org/ link you provided wont half, as this required root access to modify the server. I am in the same boat, btw, and cannot get this working on a shared hosting.