源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Apache 配置伪静态详细步骤

  • 时间:2022-02-17 22:45 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Apache 配置伪静态详细步骤
dz论坛目录下.htaccess文件内容: 程序代码
[u]复制代码[/u] 代码如下:
# 将 RewriteEngine 模式打开 RewriteEngine On # 修改以下语句中的 /bbs 为你的论坛目录地址,如果程序放在根目录中,请将 /bbs 修改为 / RewriteBase /bbs # Rewrite 系统规则请勿修改 RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1 RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2 RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2 RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
配置Apache; 1、修改Apache 的配置文件 httpd.conf 。将#LoadModule rewrite_module modules/mod_rewrite前面的#去掉 2、在 httpd.conf中添加:
[u]复制代码[/u] 代码如下:
<IfModule mod_rewrite.c> RewriteEngine On #... </IfModule>
3、保存httpd.conf并重启Apache
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部