急求救,默認主網頁問題
我是個新手,我的是租的伺服器,安裝了一個DZ的論壇,現在想用我的一個文件index_frame.php變成默認的主頁,不知道應該怎樣設置.
我開始以為默認打開index.php,就把我的index_frame.php改成index.php,原來的改成index_frame.php(互換名字),結果打開網址www.1234.com居然變成了默認連接index_frame.php(原來那個主頁文件),就像認識原來那個主頁一樣。而且我在瀏覽器里輸入www.1234.com/index.php會自動變成原來默認的主頁,請問是怎麼回事。
系統linux / PHP v4.4.4 Safe Mode
apache 1.3(好像)
[ 本帖最後由 guolisen 於 2007-6-20 14:08 編輯 ]
《解決方案》
你設置過默認的文檔了么?
DirectoryIndex index.php
《解決方案》
沒有,是租用的空間,好像設不了吧.
是不是主頁文件里有相關標籤,apache能夠識別為主頁嗎?
原來論壇默認index.php,我把index.php文件,重命名成index_frame.php,在打開www.1234.com他卻直接訪問index_frame.php,
[ 本帖最後由 guolisen 於 2007-6-20 14:31 編輯 ]
《解決方案》
http://www.fingerstylechina.com/index_frame.php
輸入這個,就自動變成
http://www.fingerstylechina.com/index.php
index_frame.php其實就是一個框架文件
<html><head><title>指彈中國歡迎您</title>
</head><frameset rows="*,23" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="index.php" name="mainFrame" scrolling="yes">
<frame src="mvd/exd.htm" name="bottomFrame" noresize="noresize" scrolling="no"></frameset><noframes>
<body></body>
</noframes></html>
《解決方案》
租用的空間也是可以設置默認首頁的。99%都可以。
你要是不會用,就問問你的服務商。