Hostgator主机默认首页删除后如何恢复?Hostgator主机在为您开通空间后会自动生成一个默认首页,如下图:
其实对我们使用Hostgator主机还是很有些用处的,不过也有些人会选择把他们删除。如果删除后又后悔了怎么办呢?很简单,使用下面的代码直接新建一个文件,命名为default.html后上传到你的网站根目录下就可以了(当然,放在别的目录下也是可以的了)!
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<htmlxmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1&PRime; />
<title>HostGator Web Hosting Website Startup Guide</title>
<link rel=”stylesheet” href=”http://www.hostgatorsupport.com/style.CSS” type=”text/css” />
</head>
<body>
<br />
<div id=”wrap”>
<div id=”header”><img src=”http://www.hostgatorsupport.com/images/ban2.png” alt=”ban” width=”768″ height=”141″ /></div>
<div id=”content”><a href=”/webmail” target=”_blank”></a><br />
<br />
<table width=”100%” border=”0″>
<tr>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/cp.png” alt=”cp” width=”51″ height=”40″ /></td>
<td valign=”middle” class=”contentlinks”><a href=”/cpanel” target=”_blank”>cPanel Login</a></td>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/mail2.png” alt=”webmail” width=”51″ height=”36″ /></td>
<td class=”contentlinks”><a href=”/webmail” target=”_blank”>Webmail Login</a></td>
</tr>
<tr>
<td width=”24%” align=”right”><img src=”http://www.hostgatorsupport.com/images/start.png” alt=”start” width=”45″ height=”35″ /></td>
<td width=”24%” valign=”middle”><a href=”http://hostgator.com/gettingstarted.shtml” target=”_blank” class=”contentlinks”>Getting Started</a></td>
<td width=”8%” align=”right”><img src=”http://www.hostgatorsupport.com/images/dollar.png” alt=”dollar” width=”35″ height=”40″ /></td>
<td width=”40%”><a href=”https://secure.hostgator.com/billing” target=”_blank” class=”contentlinks”>Billing / Invoices </a></td>
</tr>
<tr>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/filmstrip2.jpg” alt=”film2″ width=”46″ height=”39″ /> </td>
<td><a href=”http://www.hostgator.com/tutorials.shtml” target=”_blank” class=”contentlinks”>Video Tutorials</a></td>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/com.png” alt=”com” width=”45″ height=”35″ /></td>
<td><a href=”http://www.hostgator.com/domains” target=”_blank” class=”contentlinks”>Purchase / Transfer Domain Name </a></td>
</tr>
<tr>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/book3.png” alt=”book” width=”42″ height=”42″ /> </td>
<td class=”contentlinks”><a href=”http://support.hostgator.com/index.php?_m=knowledgebase&_a=view” target=”_blank”>Knowledgebase</a></td>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/mail1.png” alt=”mail” width=”45″ height=”48″ /></td>
<td><a href=”http://support.hostgator.com/” target=”_blank” class=”contentlinks”>Ticket System </a></td>
</tr>
<tr>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/people.png” alt=”people” width=”51″ height=”40″ /></td>
<td class=”contentlinks”><a href=”http://forums.hostgator.com” target=”_blank”>Online Forums</a></td>
<td align=”right”><img src=”http://www.hostgatorsupport.com/images/phone2.png” alt=”phone2″ width=”47″ height=”45″ /></td>
<td class=”contentlinks”><a href=”http://www.hostgator.com/contact.shtml” target=”_blank”>Contact US</a></td>
</tr>
</table>
<table width=”100%” border=”0″>
<tr>
<td align=”left”> </td>
</tr>
</table>
</div>
<div id=”footer”><a href=”javascript:void(0);” onclick=”window.open(‘http://chat.hostgator.com/liveperson/’, (Math.floor(Math.random()*100000)), ‘toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=375,left = 310,top = 275′);”><img src=”http://www.hostgatorsupport.com/images/banner1.jpg” alt=”Live Support” border=”0″ /></a><br />
| <a href=”http://www.hostgator.com/” title=”HostGator Web Hosting” target=”_blank”>HostGator.com Web Hosting</a> |<br />
<span class=”style8″>Copyright 2009 © HostGator.com</span></div>
</div>
<script language=’Javascript’ type=”JavaScript/text” src=’http://chat.hostgator.com/liveperson/’> </script>
</body>
</html>
当然,你可能看到代码就头疼,那也不要紧,因为我们可以找Hostgator客服帮忙嘛!提交Ticket或直接找他们的在线客服,让他们帮你重新上传这个文件上去就是了!