分类分类
大小:208KB更新:2013/04/09
类别:其他分类系统:Win2003,WinXP,Win2000,Win9X
首先我认为做论坛,除了基本的关键词 描述的设置,还有一点,就是伪静态
miniBB的伪静态,其实也不难的,今天晚上我特意去尝试了一下miniBB伪静态的设置方法
伪静态规则:
RewriteEngine On RewriteRule ^index.html$ ./index.php?mdrw=on RewriteRule ^manual.html$ ./index.php?action=manual&mdrw=on RewriteRule ^([0-9]+)_([0-9]+)_([-0-9]+).html$ ./index.php?action=vthread&forum=$1&topic=$2&page=$3&mdrw=on RewriteRule ^([0-9]+)_([-0-9]+).html$ ./index.php?action=vtopic&forum=$1&page=$2&mdrw=on RewriteRule ^([0-9]+)/$ ./index.php?page=$1&mdrw=on
把上面的内容复制粘贴到记事本,然后另存为htaccess,之后将他重命名 .htaccess(你也可以把先传到空间然后在空间上修改)
规则里面的index.php是你的首页文件名,如果你已经修改了,比方说你改成index9.php 那么在规则里也要修改成index9.php
我这个有个弄好了的规则,你只需要把它传到论坛根目录即可 (默认index.php首页的,修改过首页文件名的不要下)
地址:http://www.vdisk.cn/down/index/11838450
下面这一步是关键,其实当你把.htaccess文件传上去之后, 打开你的setup_options.php文件
把//$mod_rewrite=TRUE;
变成$mod_rewrite=TRUE;
加了//说明这内容是注释内容,不会被执行的,所以要去掉,把mod_rewrite功能开启
找到
$startIndex='index.php'; // or 'index.html' for mod_rewrite $manualIndex='index.php?action=manual'; // or 'manual.html' for mod_rewrite
然后把他们改成
$startIndex='index.html'; // or 'index.html' for mod_rewrite $manualIndex='manual.html'; // or 'manual.html' for mod_rewrite
一个是首页伪静态一个是手册伪静态,这个随你喜欢,你可以保持动态不修改
当你把mod_rewrite功能开启之后,你再刷新下首页,你会发现那些文章或者板块的地址都已经被重写成静态了
就像上面的,你也可以把首页跟手册页面变成伪静态,那么miniBB的伪静态就完全设置好了! miniBB下载地址:http://down.admin5.com/php/101913.html