Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to turn on Rewrite function in Apache

Shulou Source: shulou.com Published: 2022-06-01 04:12:27 10月06日 Update

If the Rewrite function of Apache is enabled:

1. Modify the httpd.conf file:

2. Load the Rewrite module of Apache, find the following options, and remove the previous # comment

3. After the second step, the rewrite function has been turned on, but if you want to use the rewrite function in the program directory, you need to configure the following options to allow the distributed configuration file, that is, the .htaccess file, to modify the dynamic configuration of apache.

[you need to change all the AllowOverride None in the httpd.conf file to: AllowOverride All; provides an alternative method to quickly replace the full text:

Enter::% s/AllowOverride None/AllowOverride All/g in the last line mode

Just enter.

]

4. After setting up, restart Apache and get it done.

Tags: Files functions configurations facets that is full-text distributed dynamic methods modules patterns comments directories programs input selection Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux MariaDB Microsoft macOS