Hi! I'm trying to implement a short url to my wiki and keep bumping into the same problem:
Not Found
The requested URL /index.php 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 an apache server, but don't have root access, so I'm using .htaccess file instead:
RewriteEngine On
RewriteRule ^/?rebornpedia(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
And of course, the localsettings looks like this:
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/rebornpedia/$1";
$wgUsePathInfo = true;
I've tryed a couple of things (like replacing Document Root with the actual path) but nothing seems to work. Any idea what might be causing it?
Thanks!
EDIT: I originally used http://shorturls.redwerks.org to configure my files, but if enter the url path again, the following message is displayed:
Sorry, this does not look like a wiki.
We could not find a rel=EditRSD
in the url you specified nor could we find a generator meta item with MediaWiki information in it.
Are you sure you gave the url to your MediaWiki installation? If you gave the correct url your install may be customized or broken in a way that prevents us from detecting the location of your wiki's api and coming up with shorturl configuration for you.