How to turn on Rewrite function in Apache
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.