Home>Article>Operation and Maintenance> 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
and remove the leading #. If not, add it, but it must be an exclusive line to make apache support mod_rewrite module
Find
# # 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
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 theApache Tutorialcolumn 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!