Python's Archiver

為方便港臺同胞閱覽,Python中國特別推出簡繁體內容轉換功能

xieaotian 发表于 2007-12-13 08:51

开篇第一博~! APACH URL转向

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

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.