On 01.01.18 21:18, Amanda Quad wrote:
Hello, The #REDIRECT function is only for redirecting pages within your wiki to other pages within your wiki. It cannot be used to redirect pages within your wiki to another external non-MediaWiki site. However, if you are using https://mediawiki.org/wiki/Extension:Interwiki%C2%A0you can set up interwiki prefixes to Point to other MediaWiki sites, for example, Wikipedia. Examples:
- If you want your wiki page “Test” to automatically redirect users who open it to the page “Example”, you can replace all content on the page “Test” with #REDRIECT [[Example]]
- If you have configured a prefix for Wikipedia in Special:Interwiki (usually something like “en:” or “wikipedia:”), you can do an interwiki soft redirect between your wiki and Wikipedia. However please note that soft redirects do not redirect users automatically - they require the users to click on the redirect link. So, if you wanted to redirect the page “Test” on your wiki to the Wikipedia Main Page, and you were using en: as the interwiki prefix, you would replace all content on the page “Test” on your wiki with #REDIRECT [[:en:Main Page]].
Hello Amanda, thanks for the reply. This is exactly what we do, sorry for cutting short my description. And we were happy that #REDIRECT just works with interwiki links.
But our problem is the status code of the redirect.
Some more background behind the problem:
We try to split our current wiki into 2 separate ones, because our users have multiple use cases for it and it gets confusing for everyone having articles usable in one use case and others in other use cases. And new users are even more confused what they are supposed to find or do.
So what we try to do is "extract" all pages from one use case into a new wiki. That is why the permanent redirect with 301 is from our perspective the correct thing, because the topic/page will not ever need to come back.
thanks for your help Christian