Topic on Project:Support desk

[SHORT URL ISSUE] The requested URL /index.php was not found on this server.

4
Summary by Nicohhsm
Nicohhsm (talkcontribs)

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.

Ciencia Al Poder (talkcontribs)

Note that while your short URLs should look inside /rebornpedia/ and wiki is installed in /w/ /index.php, however the error message talks about /index.php, so something seems to be wrong here. What's displayed on the location toolbar of the browser when you get the error? If it displays yourdomain.com/index.php then there's another redirect rule being applied somewhere.

Nicohhsm (talkcontribs)

Hi! Thanks for the help. I suspected something of the sort, thats why I tried to replace "document root" with the server path, but got the same problem.

Whats displayed on the url bar when I get that error is http://mydomain.com/rebornpedia/Página_principal

Nicohhsm (talkcontribs)