Home >Backend Development >PHP Tutorial >ThinkPHP framework implements rewrite routing configuration

ThinkPHP framework implements rewrite routing configuration

不言
不言Original
2018-07-07 15:08:332873browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn