📄 html.htm
字号:
<!--<?php
include_once Template('top');
print <<<EOT
-->
<div class="menuTab">
<ul>
<li class="active"><a href="$basename">静态目录设置</a></li>
</ul>
</div>
<div class="c"></div>
<div class="itable">
<table cellspacing="0" cellpadding="0">
<caption>提示信息</caption>
<tr><td>
<div style="line-height:20px;margin:5px 0 5px 20px;">
<b>使用方法:</b><br>此功能的目的是把URL转换成更容易被搜索引擎收录的形式, 需要相关的服务器权限,下面以apache服务器为例介绍使用方法.<br><br> 1.在<b>静态目录部署</b>中, 将静态目录设置为"-htm-",将静态目录扩展名设置为:".html"<br> 默认的URL形式为 "http://www.your.com/cate<font color="red"><b>.php?</b></font>cid_1.html"<br> 新的URL形式为 "http://www.your.com/cate<font color="red"><b>-htm-</b></font>cid-1.html"<br> 这种纯静态形式的URL更易被搜索引擎收录<br><br>2.Apache Web Server 的配置<br> 首先确定加载了 Mod_rewrite 模块,方法: 检查 conf/httpd.conf 中是否存在以下两段代码 (具体路径可能会有所不同,但形式基本是一样的):<br><br>(一)LoadModule rewrite_module libexec/mod_rewrite.so<br> (二)AddModule mod_rewrite.c<br><br> 如果存在,那么在配置文件(通常就是conf/httpd.conf)中加入如下代码。此时须注意,如果网站使用通过虚拟主机来定义,请务必加到虚拟主机配置中去,否则可能无法使用。改好后然后将 Apache 重启. <br><br><IfModule mod_rewrite.c><br> RewriteEngine On<br> RewriteRule ^(.*)<font color="red"><b>-htm-</b></font>(.*)$ $1.php?$2<br></IfModule><br><br>
<b>IIS下的设置可以参考</b><a href="http://www.phpshops.com/read.php?tid=31" target="_blank">http://www.phpshops.com/read.php?tid=31</a>
</div>
</td></tr>
</table>
</div>
<form action="$basename&" method="post">
<input type="hidden" name="step" value="2" />
<div class="itable">
<table cellspacing="0" cellpadding="0">
<caption>静态目录部署</caption>
<tr class="tr1">
<td width="55%">是否开启静态目录部署功能</td>
<td>
<input type="radio" name="config[htmifopen]" value="1" $htmifopen_1 /> 是
<input type="radio" name="config[htmifopen]" value="0" $htmifopen_0 /> 否
</td>
</tr>
<tr class="tr1">
<td>静态目录</td>
<td>
<input size="35" value="$db_dir" name="config[dir]" class="ip" />
</td>
</tr>
<tr class="tr1">
<td>静态目录扩展名设置</td>
<td>
<input size="35" value="$db_ext" name="config[ext]" class="ip" />
</td>
</tr>
</table>
</div>
<div class="tac">
<input type="submit" class="bt bt2" value="提 交" />
</div>
</form>
<!--
EOT;
include_once Template('adminbottom');
?>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -