Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of turning on pseudo-static in apache

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report