2011-05-07 11:14:25 0 评论 Apache Boy.Lee

为htaccess设置rewrite

{Step One}

open : /usr/local/....../apache2/conf/httpd.conf

#
# This should be changed to whatever you set DocumentRoot to.
#

......

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

......

{Step Two}

Change AllowOverride None -> AllowOverride All

{Step Three}

apache restart ......Done.