Apache Open Rewrite mode

Source: Internet
Author: User

Many of the frameworks now use a routing mechanism, but if the override mode is not turned on in Apache, the server does not read the route

So today we're going to share Apache. Open Rewrite mode

Under Ubuntu:

1. Under the command line

sudo a2enmod rewrite//Open extension

Or: sudo ln-s/etc/apache2/mods-cuailable/rewrite.load/etc/apache2/mods-enabled/rewrite.load

2. Then modify the/etc/apache2/sites-enabled/000-default in the

Modify all of the allowoverride None to allowoverride all

3.sudo/etc/init.d/apache2 Restart//restart Apache service

Under Mac:

See Links:

Http://www.cnblogs.com/zhuchenglin/p/5528279.html

Under Windows Apache Open rewrite mode:

Similar to how the above Mac is turned on

If an error is said,

Go to PHP.ini, find the following sentence to remove the comment

Extension=php_curl.dll

Note: Apache will need to restart every time the Apache configuration file is modified, otherwise you won't see the effect

Apache Open Rewrite mode

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.