配置rewrite和.htaccess

一、配置 apache 的 httpd.conf:
1.3.x 版本:
LoadModule rewrite_module libexec/mod_rewrite.so
AddModule mod_rewrite.c

2.x 版本:
LoadModule rewrite_module modules/mod_rewrite.so

二、虚拟主机配置:

DocumentRoot “/www/abc.com”
ServerName www.abc.com


Options FollowSymLinks
AllowOverride Options FileInfo

Leave a Reply

Your email address will not be published.

*