apache下pbdigg的伪静态设置

[ 2010-07-06 15:11:39 | 作者: admin ]
字号: | |
一、修改httpd.conf文件
   <Directory />
           。。。
           AllowOverride All
   </Directory>



二、windows操作系统下面,网站根目录下面建立 htaccess.txt ,然后另存为 .htaccess

# 打开 RewriteEngine 模式
RewriteEngine On
RewriteBase /

#RewriteRule ^show/([0-9]+)\.html(&page=([0-9]+))?$ show\.php\?tid=$1&page=$3

RewriteRule ^index(_?([0-9]+))?(\.html)?$ index\.php\?p=$2
RewriteRule ^category/([0-9]+)/?(([0-9]+)(\.html)?)?$ category\.php\?cid=$1p=$3
RewriteRule ^user/([0-9]+)(\.html)?$ user\.php\?uid=$1
RewriteRule ^show/([0-9]+)(\.html)?$ show\.php\?tid=$1

# 404错误页面定义
ErrorDocument 404 /404.htm

三、进入PB的后台
系统>功能设置>URL重写 设置为:PBDigg! 伪静态模式,然后进入搜索优化,设置 URL重写扩展名 为 html,分类伪静态目录为 category ,主题伪静态目录为 article。保存,更新缓存。
[最后修改由 admin, 于 2010-07-06 15:28:07]
评论Feed 评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=1421

这篇日志没有评论。

此日志不可发表评论。