[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path Zen Cart 源代码 5.renaming_the_admin_directory.html
<table border="3" width="748px" align="center" cellpadding="6">
<tr>
<td>
<center>
<h1 class="intro">Admin目录安全</h1>
</center>
<div>
<h1>What is this article about? </h1>
It is recommended for additional security that you rename your
admin directory after installation. This way, it will be significantly harder for hackers to find your admin area or attempt any attack on breaking into it. <br>
<br />
</div>
<div><h1>How to Rename the Admin Directory</h1>
<p>Before making any changes, make sure to have a current backup of your files and your database.</p>
<h2>1- Open your admin configuration file: <span class="filename">admin/includes/configure.php</span></h2>
<p>In this file, change all instances of <span class="filename">/admin/</span> to your chosen name:</p>
<p>Change this section:</p>
<p class="filename">// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!<br>
// * DIR_WS_* = Webserver directories (virtual/URL)<br>
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)<br>
define('DIR_WS_ADMIN', '/admin/');<br>
define('DIR_WS_CATALOG', '/');<br>
define('DIR_WS_HTTPS_ADMIN', '/admin/');<br>
define('DIR_WS_HTTPS_CATALOG', '/');</p>
<p>Change this section:</p>
<p class="filename">// * DIR_FS_* = Filesystem directories (local/physical)<br>
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/<br>
define('DIR_FS_ADMIN', '/home/mystore.com/www/public/admin/');<br>
define('DIR_FS_CATALOG', '/home/mystore.com/www/public/');<br>
</p>
<h2>2- Rename your admin directory </h2>
<p>Using your FTP software, find your Zen Cart™ <span class="filename">/admin/ </span>directory. Rename the directory to match the new name used in step 1 above when you edited your <span class="filename">admin/includes/configure.php</span><br>
</p>
</div>
<div>
<h1>Additional Information </h1>
<p>For more information on site-security, see <a href="./important_site_security_recommendations.html" target="_blank">important_site_security_recommendations.html</a></p>
<p>For additional help and support issues, visit our <strong>FAQ's</strong> and our <strong>Support Forums</strong> on the web.<br />
<a href="http://www.zen-cart.com" target="_blank"><strong>Zen Cart™ Website</strong></a>
<br />
<br />
<br />
<em>Good Luck with the software and Enjoy the Zen Cart™ Experience!</em> <br />
<br />
</p>
</div>
</td>
</tr>
</table>
<p align="center"><em>Zen Cart 中文版 版权所有 2004 - 2010</em></p>
<br /><br />
</body>
</html>