📄 sethtm.htm
字号:
<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<table width=95% align=center cellspacing=1 cellpadding=3 class="i_table">
<tr><td class=head colspan=2><b>提示信息</b></td></tr>
<tr><td class="b">
<b>功能说明:</b><br>此功能把论坛的URL转换成更容易被搜索引擎收录的形式,普通用户只需开启静态目录部署功能即可,URL形式如:http://www.phpwind.net/thread.php?fid-2.html,不过这种形式中包含有(.php?), 可能会被某些搜索引擎判定为是动态页面, 而降低网站内容被收录的机率,为了能更好的提高您的网站被搜索引擎收录的机率,可以使用参照下面的方法对服务器进行相关设置<br><br><b>使用方法:</b><br>以apache服务器为例介绍使用方法.<br><br> 1.在<b>静态目录部署</b>中,开启静态目录部署功能,将静态目录设置为"<font color="red"><b>-htm-</b></font>",将静态目录扩展名设置为:"<font color="red"><b>.html</b></font>"<br> 默认的URL形式为 "http://www.phpwind.net/thread<font color="red"><b>.php?</b></font>fid=2"<br> 新的URL形式为 "http://www.phpwind.net/thread<font color="red"><b>-htm-</b></font>fid-2<font color="red"><b>.html</b></font>"<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>
</td></tr></table><br>
<br>
<form action="$basename&" method="post">
<input type=hidden name="step" value="2">
<table width=95% align=center cellspacing=1 cellpadding=3 class="i_table">
<tr><td class=head align=center colspan=2><b>静态目录部署</b></td></tr>
<tr class="b">
<td width="60%">是否开启静态目录部署功能</td>
<td>
<input type="radio" name="config[htmifopen]" value="1" $htmifopen_Y>是
<input type="radio" name="config[htmifopen]" value="0" $htmifopen_N>否
</td>
</tr>
<tr class="b">
<td width="60%">静态目录</td>
<td><input size=35 value="$db_dir" name="config[dir]"></td>
</tr>
<tr class="b">
<td width="60%">静态目录扩展名设置</td>
<td><input size=35 value="$db_ext" name="config[ext]"></td>
</tr>
</table>
<br><center><input type=submit value="提 交"></center>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -