zoukankan      html  css  js  c++  java
  • Apache开启.htaccess伪静态支持配置方法

    1. 检查Apache是否加载了mod_rewrite模块

    打开apache的配置文件httpd.conf,找到以下配置,把前面#去掉,没有则添加。

    #LoadModule rewrite_module modules/mod_rewrite.so

    2. 检查Apache是否开启.htaccess支持

    打开apache的配置文件httpd.conf,找到以下配置,把 AllowOverride None 换成 AllowOverride All 使apache支持 .htaccess 文件。

    <Directory "D:/server/www">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        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
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>
  • 相关阅读:
    sqlserver 表操作 SQL篇
    C#知识点汇总
    DDL
    sqlserver2008简介
    面向对象继承
    IO文件流
    【帅刺猬课堂】Winform中使用WPF的UserControl
    KS Gantt甘特图控件通过递归加载无限层级的数据
    Office 每次打开需要重新配置的问题修复方法
    扩展方法
  • 原文地址:https://www.cnblogs.com/chenjiacheng/p/6522270.html
Copyright © 2011-2022 走看看