K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

采用Win+APM Express架构的本地服务器下伪静态的设置

1Next >

bhbhbh01 发表于:10-12-10 10:36 [添加收藏] 楼主 [回复] #Top#
bhbhbh01 人气:6 积分:31 金币:122

采用Win+APM Express架构的本地服务器下伪静态的设置,
按照

  • 打开 apache 的配置文件 httpd.conf
  • 将#loadmodule rewrite_module modules/mod_rewrite前面的#去掉
  • 在 httpd.conf中添加管理后台,内容管理,为静态规则里获得的代码:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)(/(list|page)(-[0-9]+)+.html)$ $1/index.php$2
    RewriteRule ^(.*)(/tag-.+?(-[0-9]+)?.html)$ $1/index.php$2
    </IfModule>
  • 设置好后,页面打开

    Not Found

    The requested URL /king/page-4-1.html was not found on this server.

    到底该怎么设置啊,

    谢谢

    bhbhbh01 发表于:10-12-10 10:38 沙发 [回复] #Top#
    bhbhbh01 人气:6 积分:31 金币:122
    在 httpd.conf中添加管理后台,内容管理  这句话的意思是指在httpd.conf中添加
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)(/(list|page)(-[0-9]+)+.html)$ $1/index.php$2
    RewriteRule ^(.*)(/tag-.+?(-[0-9]+)?.html)$ $1/index.php$2
    </IfModule> 
    就可以了吗?
    bleach 发表于:10-12-11 16:26 板凳 [回复] #Top#
    bleach 人气:87 积分:32 金币:1003
    KC元老
    给个蛋吧..

    1Next >

    发表回复

    帐号 匿名发布 审核后可见 [加载完整在线编辑器]
    内容
    验证码
    KingCMS 内容管理系统

    关于我们 联系我们 广告报价 付款方式 站点导航

    Copyright © 2004-2015 Focuznet All rights reserved.

    广州唯众网络科技有限公司 粤ICP备08008106号