WikiMatrix
  • Forum
  •  » MediaWiki
  •  » New here and new to Mediawiki...need help with domain redirecting

#1 2010-02-24 06:07:01

chrisb
Member
Registered: 2010-02-24
Posts: 1

New here and new to Mediawiki...need help with domain redirecting

Hello all,

   I have a shared hosting account and installed MediaWiki on a domain.  I am doing the Short URL capability using .htaccess and LoginSettings.php mods.  My urls are redirecting from the main domain http://www.example.com/wiki/Main_Page to http://www.example.hostdomain.com/wiki/Main_Page.

   So if you type:    http://www.example.com   it automatically directs to http://example.hostdomain.com.

How can I force Mediawiki to keep the URL's on the original domain and not direct to the other one?  It's driving me nuts.  I hope that was clear.

Any help would be greatly appreciated.

Regards,
Chris

Offline

 

#2 2010-03-01 15:49:30

UberGeek
Member
Registered: 2009-11-24
Posts: 43

Re: New here and new to Mediawiki...need help with domain redirecting

Setting the "$ScriptURL" variable in the config for mediawiki will prevent it from directing to the wrong domain.  It seems Mediawiki is having some issues automaigcally determining the correct URL.

Offline

 
  • Forum
  •  » MediaWiki
  •  » New here and new to Mediawiki...need help with domain redirecting

You are not logged in.


Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB