1. 程式人生 > >centos7 apache開啟偽靜態

centos7 apache開啟偽靜態

編輯Apache配置檔案

nano /etc/httpd/conf/httpd.conf

找到以下內容,

Include conf.modules.d/*.conf

在上面一行之後新增以下內容,

LoadModule rewrite_module modules/mod_rewrite.so

繼續找到以下內容,

Options Indexes FollowSymLinks
    #
    # 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 None

將此處的AllowOverride None修改為AllowOverride all。