Last modified: 2010-05-15 15:48:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9072 - Wiki uses Serverdirectorypath as Articlename
Wiki uses Serverdirectorypath as Articlename
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.9.x
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.theologiewiki.de/wiki
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-22 22:21 UTC by André Mondri
Modified: 2010-05-15 15:48 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description André Mondri 2007-02-22 22:21:40 UTC
Hello i used this Instruction to create Short Urls : 

[quote]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'.
2. 	Add or edit the following setting in LocalSettings.php. This causes the HTML
generated by MediaWiki to refer to "/Articlename" instead of the default.

$wgArticlePath = "$wgScriptPath/$1";
[/quote]

it works - but :

my Wiki is installed here:

http://www.theologiewiki.de

Articles look like that: 

http://www.theologiewiki.de/Bibel

The Problem is now that before Rewriting i have moved my Wiki from /wiki to /. 

http://www.theologiewiki.de/wiki/ to http://www.theologiewiki.de/ .

So of course i tried now to redirect with 301 the /wiki to / for SEO Issues.

But this is not working because MediaWiki now ignores the Directory /wiki and
uses it for Articlenames.

Try it : http://www.theologiewiki.de/wiki/

I searched at mwusers at mediawiki.org at metawiki but i cant find any fix or
solution so you are my last hope.
Comment 1 Rob Church 2007-02-22 22:29:12 UTC
Don't rewrite articles to appear in the document root; it eliminates the entire
namespace, making other files, such as favicon.ico, robots.txt, etc. inaccessible.
Comment 2 Brion Vibber 2007-02-22 22:34:33 UTC
This is a problem with your local web server configuration,
not a bug in MediaWiki.

A question like this is probably more appropriate for the mwusers.com
forums; you'll get better reception and better answers there.
Comment 3 André Mondri 2007-02-22 22:47:05 UTC
Rob - anything else works fine.

Brion - mwusers.com is nearly dead. 

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links