How to Set AllowOverride all

前端 未结 11 1546
忘掉有多难
忘掉有多难 2020-11-22 10:17

I want to set the AllowOverride all But I don\'t know how to do it. I have found the following code by searching the google and pasted it in .htaccess

11条回答
  •  温柔的废话
    2020-11-22 10:48

    If you are using Linux you may edit the code in the directory of

    /etc/httpd/conf/httpd.conf
    

    now, here find the code line kinda like

    # 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
    #
    # Controls who can get stuff from this server.
    #
        Order allow,deny
        Allow from all
    
    
    

    Change the AllowOveride None to AllowOveride All

    Now now you can set any kind of rule in your .httacess file inside your directories if any other operating system just try to find the file of httpd.conf and edit it.

提交回复
热议问题