你的位置:HBcms宏博内容管理系统 HBcms使用帮助 正文
HBcms使用帮助
  1. 如何安装
  2. 快速入门
  3. 自定义表单
内容搜索
热门内容
  1. HBcms建站系统exe安装..
  2. CMS下载,宏博cms免费下..
  3. 如何安装HBcms,安装是..
  4. HBcms火车头采集模块,..
  5. 全部是乱码!不能安装..
  6. FTP如何使用二进制模式..
  7. 不占网站空间,免费上..
  8. 宏博cms的Google全文搜..
  9. 如何给每个页面添加流..
  10. 网站首页每天自动更新..
推荐内容
  1. CMS下载,宏博cms免费下..
  2. 怎么添加首页友情连接..
  3. 如何安装HBcms,安装是..
  4. 如何给每个页面添加流..
  5. 输入框的式样和预设值
  6. 全自动升级到最新的HB..
  7. HBcms火车头采集模块,..
  8. 如何改变静态页的文章..
  9. 基本属性的用途
  10. 宏博cms淘宝taobao支付..
贴吧程序的.htaccess或httpd.ini伪静态设置
  •  添加时间:2010-03-17 发表时间:2010-03-17 人气:7004
  • 某些客户有定制贴吧程序,.htaccess或httpd.ini伪静态设置是如何呢? 2个文件都放在/目录即可

    apache环境,设置.htaccess文件:

    # 如果需要启用伪静态,请将本文件重命名为.htaccess,并移动到/目录
    # 然后请修改tieba.ini.php文件里的参数

    RewriteEngine On

    # tieba程序的真实目录
    RewriteBase /hbcms/tieba


    # 伪静态规则,如果搜索引擎已经收录你的网页,则不建议修改
    # 如果将把.htaccess放在/目录,对tieba目录生效,则使用下面的规则

    RewriteRule ^tieba/f-([0-9]+)-([0-9]+)\.html$ list_post.php?forum_id=$1&pageID=$2
    RewriteRule ^tieba/p-([0-9]+)-([0-9]+)\.html$ show_post.php?id=$1&pageID=$2
    RewriteRule ^tieba/index.html$ index.php
    RewriteRule ^tieba/$ index.php


    # 新建一个tieba目录,把.htaccess放在tieba目录里,取消下面的注释即可工作

    #RewriteRule ^tieba.html$ index.php
    #RewriteRule ^f-([0-9]+)-([0-9]+)\.html$ list_post.php?forum_id=$1&pageID=$2
    #RewriteRule ^p-([0-9]+)-([0-9]+)\.html$ show_post.php?id=$1&pageID=$2
    #RewriteRule ^index.html$ index.php

     

    IIS环境,设置 httpd.ini文件:

    [ISAPI_Rewrite]

    CacheClockRate 3600

    RepeatLimit 32

    RewriteRule ^/tieba/f-([0-9]+)-([0-9]+)\.html /hbcms/tieba/list_post.php\?forum_id=$1&pageID=$2
    RewriteRule ^/tieba/p-([0-9]+)-([0-9]+)\.html /hbcms/tieba/show_post.php\?id=$1&pageID=$2
    RewriteRule ^/tieba/index.html$ /hbcms/tieba/index.php
    RewriteRule ^/tieba/$ /hbcms/tieba/index.php

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 相关文章
    • 相关评论
    • 本文章所属分类:首页 HBcms使用帮助