您好,欢迎来到济南诺商官方网站!
当前位置:首页 -> 新闻中心 -> 网站建设中目录的创建“技巧”

网站建设中目录的创建“技巧”

时间:2018.03.06 来源:http://www.weidaoshang.cn

网站的目录是指建立网站时创建的目录。目录的结构是一个容易忽略的问题,大多数站长都是未经规划,随意创建子目录。目录结构的好坏,对浏览者来说并没有什么太大的感觉,但是对于站点本身的维护,以后内容的扩充和移植有着重要的影响。
The directory of a web site is a directory created when the site is built. The structure of the directory is a problem that is easy to ignore. Most stationmaster is unplanned and creates subdirectories at will. The quality of directory structure has little sense for visitors, but it has great influence on the maintenance of website itself and the expansion and transplantation of content later.
不要将所有文件都存放在根目录下。有网站制作者为了方便,将所有文件都放在根目录下。这样就很容易造成:文件管理混乱,搞不清哪些文件需要编辑和更新,哪些无用的文件可以删除,哪些是相关联的文件,影响工作效率;上传速度变慢,服务器一般都会为根目录建立一个文件索引,如果将所有文件都放在根目录下,那么即使只上传更新一个文件,服务器也需要将所有文件再检索一遍,建立新的索引文件,很明显,文件量越大,等待的时间也将越长。
Do not store all the files in the root directory. For convenience, web makers put all the files in the root directory. So it is likely to cause confusion: file management, unclear files need to edit and update, which useless files can be deleted, which is associated with the file, affect the work efficiency; the upload speed is slow, the server will generally establish a file index to the root directory, if you put all the files in the the root directory, even if only upload update a file, the server also need to put all the files to search again, establish the index file, the new file obviously, the greater the amount of waiting time will be longer.
商河做网站
按栏目内容建立子目录。子目录的建立,首先按主栏目建立。友情连接内容较多,需要经常更新的可以建立独立的子目录。而一些相关性强,不需要经常更新的栏目,例如:网站简介、站长情况等可以合并放在一个统一目录下。所有程序一般都存放在特定目录。
A subdirectory is set up according to the contents of the column. The establishment of subdirectories is first set up according to the main column. The content of friendship connection is more, which needs to be updated regularly to establish independent subdirectories. And some strong correlation, do not need regular updates of the column, such as: Web site, webmaster situation and so on can be combined in a unified directory. All programs are generally stored in a specific directory.

在每个主目录下都建立独立的Images目录。一般来说,一个站点根目录下都有一个默认地Images目录。将所有图片都存放在这个目录里很是不方便,比如在栏目删除时,图片的管理相当麻烦。所以为每个主栏目建立一个独立的Images目录是方便管理的。原因很简单,就是方便维护与管理。
A separate Images directory is set up in each of the main directories. In general, there is a default Images directory in the root directory of a site. It is very inconvenient to store all the pictures in this directory, for example, when the column is deleted, the management of the pictures is rather troublesome. So setting up an independent Images directory for each main column is convenient for management. The reason is very simple, that is, it is convenient to maintain and manage.
其它需要注意的还有:目录的层次不要太深,不要超过3层;不要使用中文目录,使用中文目录可能对网址的正确显示造成困难;不要使用过长的目录,太长的目录名不便于记忆;尽量使用意义明确的目录,以便于记忆和管理。
There are other note: directory level not too deep, not more than 3 layers; do not use Chinese directory, use Chinese directory may be displayed correctly on the web site of the difficult; do not use the directory is too long, too long, the name of the directory is not easy memory; try to use clear meaning in order to facilitate memory and directory management.
以上的这些精彩的内容来自:济南诺商商河做网站公司友情提供,更多的建站知识及小窍门请继续关注我们的官方网站:http://www.weidaoshang.cn
The above wonderful content is from: Ji'nan nuotie Shanghe website company friendship provides more knowledge and tips for building sites. Please continue to pay attention to our official website: http://www.weidaoshang.cn.

商河网络公司