[Mediawiki-l] External vs Relative links question

Dantman dan_the_man at telus.net
Tue May 15 11:37:45 UTC 2007


The {{SERVER}} variable can help you with that. You'd use 
[{{SERVER}}/com/mydir/somefile] and when you move to a new domain the 
variable will change.

~Daniel Friesen of The Gaiapedia and Wikia Graphical Entertainment Project



Alex Le Bek wrote:
> I have installed a wiki as part of my website tree. I need to refer to pages
> (eg film clips) outside of the wiki installation but within the domain of
> the website. Is there a way to do this with relative path syntax 
> eg. [../mydir/somefile] ! 
>
> I do not want to hard code [http://www.mydomain/com/mydir/somefile] as I
> will be moving the wiki to a different domain (but with the same directory
> structure) which I would like to do without having to rename all the links.
>
> Any thoughts most welcome!
>
>                              Alex
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>   



More information about the MediaWiki-l mailing list