Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of turning on pseudo-static in apache

Shulou Source: shulou.com Published: 2022-06-03 06:19:18 09月21日 Update

This article mainly introduces in detail the method of turning on pseudo-static in apache. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.

To enable pseudo-static in apache:

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

find

# LoadModule rewrite_module modules/mod_rewrite.so

Remove the front #. Add if not, but only one line must be selected 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 files

Restart the apache server

Create the .htaccess file under the root directory of the PHP project where you want to enable pseudo-static

The above is a brief introduction of apache to open pseudo-static method, of course, the detailed use of the above differences have to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!

Tags: Static file method reference support different abbreviated one line code value interest guy buddy that is more server root directory module step example Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia Shulou Information OPPO Reno vpn