Hi,
I need to redirect people entering our wiki through a specific domain or using a specific skin (I only need one of both distinctions) to a specific page.
I thought ParserFunctions might be one way to go, but when I do {{#ifeq: 1 | 1 | #REDIRECT [[Specific Page]]}} it prints the redirect instead of redirecting.
Any ideas? Maybe other solutions?
Best, Matthias
2009/4/22 Matthias Korn matsch@rockinchina.com:
Hi,
I need to redirect people entering our wiki through a specific domain or using a specific skin (I only need one of both distinctions) to a specific page.
I thought ParserFunctions might be one way to go, but when I do {{#ifeq: 1 | 1 | #REDIRECT [[Specific Page]]}} it prints the redirect instead of redirecting.
Any ideas? Maybe other solutions?
I can't think of any way that could be done using wikitext. I would suggest just using an HTTP redirect on your server, assuming you have access to the relevant config files.
Hi,
we're accessing the configuration via Confixx and the subdomain is already mapped to the wiki directory. So we can't really change that. We basically want to change the Main_Page when coming from this particular subdomain.
Maybe I can have a line in LocalSettings.php, which checks the domain and redirects to the desired page. Where does MediaWiki do its redirect to the Main_Page (codewise)?
A rewrite rule is not an option last time I checked with our hosting provider.
Thanks, Matthias
Am Wed, 22 Apr 2009 19:24:12 +0100 schrieb Thomas Dalton thomas.dalton@gmail.com:
2009/4/22 Matthias Korn matsch@rockinchina.com:
Hi,
I need to redirect people entering our wiki through a specific domain or using a specific skin (I only need one of both distinctions) to a specific page.
I thought ParserFunctions might be one way to go, but when I do {{#ifeq: 1 | 1 | #REDIRECT [[Specific Page]]}} it prints the redirect instead of redirecting.
Any ideas? Maybe other solutions?
I can't think of any way that could be done using wikitext. I would suggest just using an HTTP redirect on your server, assuming you have access to the relevant config files.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
If you really don't mind redirecting a skin you can put a javascript or meta redirect in the skin file.
Here is what you need for a meta one, but it doesn't always work in all browsers. <html> <head> <meta http-equiv="refresh" content="0;url=new_place/index.html"> </head> </html>
mediawiki-l@lists.wikimedia.org