2010-05-28 27 views
0

我將MediaWiki安裝在使用IIS 6的服務器上作爲默認站點,並創建了一個虛擬目錄並將其指向Wiki文件夾。加載頁面,但所有鏈接都指向不再指向Wiki文件夾的原始位置。我可以將MediaWiki網站移動到新的虛擬文件夾嗎?

Info 
Server Name: tech 
Path to Wiki: http://tech/wiki/ 

例 鏈接 錯誤的鏈接 - 這是當前鏈接顯示

http://tech/index.php?title=Main_Page 

鏈接應該是這樣的

http://tech/wiki/index.php?title=Main_Page 

鏈接的所有未顯示/維基

任何想法?

+0

$ wgScriptPath = 「維基」;使鏈接看起來像這樣:http://tech/wiki/wiki/index.php?title = Main_Page – Landmine 2010-05-28 16:42:54

+1

$ wgScriptPath的默認值是'/ wiki',我不知道將它設置爲'wiki'的行爲是什麼。試試$ wgScriptPath =「」; http://www.mediawiki.org/wiki/Manual:$wgScriptPath – 2010-05-28 17:58:48

回答

1

你有這在你的本地設置?

$wgArticlePath = "/wiki/$1"; # Virtual path. This directory MUST be different from the one used in $wgScriptPath 
$wgUsePathInfo = true;  # Enable use of pretty URLs 

嘗試設置

wgUsePathInfo = false; 
相關問題