Page MenuHomePhabricator

One Articel redirects to 404 all other works
Closed, DeclinedPublic

Description

Author: webmaster

Description:
Hi,

our Articel redirects into a 404.

The full URL : http://www.theologiewiki.de/wiki/index.php?title=Codex_Iuris_Canonici
works .

The correct URL is : http://www.theologiewiki.de/wiki/Codex_Iuris_Canonici and fails.

Every other URL like http://www.theologiewiki.de/wiki/Martin_Luther as Example works
correct or some Thing like http://www.theologiewiki.de/wiki/Martin_Luther_Test .

I have deleted the Article and created him again. Same Result.

My Rewrite Rule :

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*[^wiki/])/?$ /wiki/index.php?title=$1 [PT,QSA,L]

my LocalSettings.php edit for ShortUrl´s :

$wgArticlePath = "/wiki/$1";

I think Article works before updating to 1.9.3 from 1.9.2 - but i am not really sure.

Attention : Don´t wonder why you are redirected to http://www.politikstube.de if URL
fails. This is our 404 Errorpath.


Version: 1.9.x
Severity: normal
OS: Linux
URL: http://www.theologiewiki.de/wiki/Codex_Iuris_Canonici

Details

Reference
bz9049

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:36 PM
bzimport set Reference to bz9049.
bzimport added a subscriber: Unknown Object (MLST).

webmaster wrote:

More Articles same Error : Dianetik, Esoterik, Isai, Isaak, Jesu Christi, Movimenti

Offhand I would suspect you have either files of these names or additional
rewrite rules which are taking them, or some other local configuration problem.

A 404 response of this sort will come from the web server, not from the wiki, so
you need to check your web server's configuration.

webmaster wrote:

Brion - it is happened after Updating Wikipedia to 1.9.3 from 1.9.2 . This
morning all other Links worked. There is nothing else changed only the Corefiles
and a Update with the Installer.

webmaster wrote:

Brion - it is happened after Updating Wikipedia to 1.9.3 from 1.9.2 . This
morning all other Links worked. There is nothing else changed only the Corefiles
and a Update with the Installer.

robchur wrote:

  1. This is not a blocker
  2. Does the problem occur if rewrite rules are disabled? If so, consult an

appropriate forum for support with this

webmaster wrote:

Not longer needed - i fixed it and updated the Instructions :

You can rewrite the URL, so the server will invisibly load
"w/index.php?title=article" for "wiki/article".

  1. Edit or create .htaccess in public_html with the following content.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]

'RewriteBase' defines where the rewrite will start; the example above will match
after 'domain.ext/~username'. If your wiki is just under public_html (ie,
domain.ext/wiki), remove the 'RewriteBase' line. 'RewriteCond' makes sure that
links to files (like stylesheets or images) are not rewritten, which can break
MediaWiki's formatting in some cases. 'RewriteRule' defines the rewrite; in the
example above, '^wiki/(.*)' will invisibly load 'w/index.php?title=$1', where
anything after 'wiki/' will replace '$1'.

  1. Add or edit the following setting in LocalSettings.php. This causes the HTML

generated by MediaWiki to refer to "/wiki/Articlename" instead of the default.

$wgArticlePath = "$wgScriptPath/$1";

The old ArticlePath Formatting in Instructions causes this Error.