[Mediawiki-l] Namspace and Default Page based on domain name

Laith lnyousif at gmail.com
Thu Mar 1 15:40:21 UTC 2007


Hi,
thanks to all of you guys i was able to do a lot with my project, I need to
do some kinda special case change and wonder if its possible.

I want to set different default page basedon the domain name the user have
accessed the application through, in fact not the defaul page as much as the
name space.

for example if the user access http://www.mydomain.com then it should go to
http://www.mydomain.com/Main_Page

but if they access it through
http://ABC.mydomain.com<http://abc.mydomain.com/>then it should go to
http://ABC.mydomain.com/ABC:Main_Page<http://abc.mydomain.com/ABC:Main_Page>of
course i would have a Namespace defined as ABC

also if they access it through
http://ANY.mydomain.com<http://any.mydomain.com/>then it should go to
http://ANY.mydomain.com/ANY:Main_Page<http://any.mydomain.com/ANY:Main_Page>of
course i would have a Namespace defined as ANY.


your help will be trully appreciated.

thanks a lot

Laith


More information about the MediaWiki-l mailing list