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