2011-03-11 120 views
5

我需要做什麼來更改cPanel中的默認頁面?更改cPanel中的默認頁面

+0

您是Cpanel帳戶的根源還是經銷商?要求默認頁面顯示或默認頁面的內容?最好的答案是最好的問題 – abkrim 2016-07-05 19:09:39

回答

9

更新或的public_html文件夾中創建的.htaccess文件,然後進行以下內容..

DirectoryIndex index.php home.php 
6

如果你指的是默認的Apache的cPanel頁面,那麼你將需要爲南國訪問

南國>>主要>>帳戶功能>>網頁模板編輯器

在這裏,您可以更改默認頁,頁被暫停等

0

如何爲託管站點上創建的cPanel默認頁面。

創建默認的html頁面並將文件上傳到cpanel根域的Skeleton Directory中。

http://www.motherhost.in/members/knowledgebase/22/how-to-change-default-page-in-cpanel.html

骨架目錄(框架目錄:定義哪些文件和子目錄的新帳戶將默認的目錄在創建帳戶,新用戶的帳戶將包含骨架目錄的精確副本)的存在讓您可以在創建帳戶時輕鬆地將相同的文件複製到每個新帳戶的public_html和public_ftp目錄中。

記住:

When a visitor accesses http://example.com, he will see the contents of example.com 's public_html directory. 
When a visitor accesses http://example.com/subdirectory, he will see the contents of public_html/subdirectory. 
Contents of the public_ftp directory are available for anonymous FTP users to download. 

這南國功能簡單地陳述了框架目錄的位置(/根/ cpanel3-skel中)。

要設置框架目錄:

These files will be accessible to the new user via an FTP client. 
Decide what kind of default setup you would like your new users to have. 
Place the appropriate subdirectories and HTML files in /root/cpanel3-skel/public_html. 
    These files will be copied to new accounts’ public_html directories when accounts are created. 
Place the appropriate FTP-related files in /root/cpanel3-skel/public_ftp. 
    These files will be accessible to the new user via an FTP client. 
1

假設你指的是創建一個帳戶時,這是很容易做到的默認頁面由內你的/ etc創建一個index.html或PHP頁面/ skel文件夾(假設你有一個VPS或專用服務器)。

在WHM中有一個設置允許它在您不熟悉CLI的情況下使用。

希望這會有所幫助,對於延遲響應抱歉,但我是新的,並試圖建立我的代表!