Steps:
Terminal running
Copy Code code as follows:
Program prompts to activate the module name, enter:
of which rewrite
Modify/etc/apache2/sites-enabled/000-default (this link is to a site configuration file)
Change the AllowOverride property (the default www directory, or directory that needs to apply. htaccess) to all and save it.
Reload Apache
Copy Code code as follows:
Sudo/etc/init.d/apache2 restart
Modrewrite opening method with XAMPP:
To turn on the MoD rewrite feature is really simple:
Locate the httpd.conf file (located in \etc\httpd.conf) under your XAMPP installation directory.
Open it with vim or another text editor
Find "allowoverride None" and replace with "allowoverride all". (The first one will be modified)
Find the "#LoadModule rewrite_module modules/mod_rewrite.so" and remove the "#" in front of you.
Restart XAMPP
Then the MoD rewrite function is turned on:
The above is the entire content of this article, I hope to be able to open to the htaccess support to help.
Please take a moment to share the article with your friends or leave a comment. We will sincerely thank you for your support!