2011-03-11 134 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的情况下使用。

希望这会有所帮助,对于延迟响应抱歉,但我是新的,并试图建立我的代表!