Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] apache 伪静态配置方法对ComsenzEXP无效?

[复制链接]
iart 发表于 2010-1-4 14:23:23 | 显示全部楼层 |阅读模式
apache 伪静态配置方法对ComsenzEXP无效?照下面改了,还是不能伪静态?

apache 伪静态配置方法

Apache伪静态html(URL Rewrite)设置法

phpma一 打开 Apache 的配置文件 httpd.conf 。

phpma二 将#LoadModule rewrite_module modules/mod_rewrite前面的#去掉

phpma三 在 httpd.conf中添加:

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteCond %{ENV:SCRIPT_URL} (?:index|dispbbs)[-0-9]+.html
    RewriteRule ^(.*?(?:index|dispbbs))-([-0-9]+).html$ $1.php?

__is_apache_rewrite=1&__rewrite_arg=$2
</IfModule>



<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteRule /news/top2007,(d+).html$   /news/readmore.php?id=$1
</ifmodule>
四 保存httpd.conf并重启apache。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-29 23:25 , Processed in 0.394800 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表