The support of Apache to. htaccess is enabled under Ubuntu _linux

Source: Internet
Author: User

Steps:

Terminal running

Copy Code code as follows:

sudo a2enmod

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.