Author: webmaster
Description:
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".
- 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'.
- 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:
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.
Version: 1.9.x
Severity: normal
OS: Linux
URL: http://www.theologiewiki.de/wiki