Last modified: 2010-05-15 15:48:31 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.
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.
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.
Rob - anything else works fine. Brion - mwusers.com is nearly dead.