This article mainly introduces the implementation of rewrite routing configuration in the ThinkPHP framework. It has certain reference value. Now I share it with you. Friends in need can refer to
rewrite routing form: //Website/Group /Controller/Method
Configure the configuration to implement rewrite routing:
1. Modify the apache configuration
First modify AllowOverrideAll in the httpd.conf configuration file, and modify everything to All:
2. Enable the rewrite module:
3. Modify the configuration in the virtual directory and add a new The following code:
4. Add distributed configuration file:
5. Restart apache to generate configuration
The above is the entire content of this article. I hope it will be helpful to everyone's study. For more related content, please pay attention to the PHP Chinese website!
Related recommendations:
thinkphp multi-image ajax upload image
ThinkPHP5 development of WeChat cash red envelope
The above is the detailed content of ThinkPHP framework implements rewrite routing configuration. For more information, please follow other related articles on the PHP Chinese website!