How to enable pseudo-static in apache

步履不停
Release: 2019-07-26 09:55:52
Original
7117 people have browsed it

How to enable pseudo-static in apache

Steps to enable pseudo-static apache:

Open apache’s configuration file httpd.conf, path: wamp\bin\apache\apache2. 4.9\conf\httpd.conf

Find

 #LoadModule rewrite_module modules/mod_rewrite.so
Copy after login

and remove the leading #. If not, add it, but it must be an exclusive line to make apache support mod_rewrite module

Find

<Directory "D:/ApacheServer/web">
    #
    # 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&#39;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>
Copy after login

Replace AllowOverride None with AllowOverride All to make apache support .htaccess file

Restart apache Server

Create an .htaccess file in the root directory of the PHP project where pseudo-static is to be enabled

For more technical articles related to Apache, please visit the Apache Tutorial column to learn!

The above is the detailed content of How to enable pseudo-static in apache. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template