开篇第一博~! APACH URL转向

上一篇 / 下一篇  2007-08-27 17:13:48 / 天气: 晴朗 / 心情: 高兴 / 精华(1) / 置顶(1)

1。找到conf/httpd.conf LoadModule rewrite_module modules/mod_rewrite.so 去掉#

2。找到 Include conf/extra/httpd-vhosts.conf 去掉#

3。编辑 httpd-vhosts.conf。

(如果多域名可以新建目录为 vhosts 。但在要 httpd-vhosts.conf 加 Include conf/vhosts/*.conf)

4。RewriteEngine ON
   RewriteRule ^/xxf.html /xxf.php (这里正规比较多)
   RewriteRule ^/xxf_(\d+)_(\d+)_?(\d*).html /xxf.php?id=$1&msgid=$2&page=$3


TAG: rewriterule

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的存档

数据统计

  • 访问量: 118
  • 日志数: 1
  • 建立时间: 2007-08-23
  • 更新时间: 2007-08-27

RSS订阅

Open Toolbar