Home > Backend Development > PHP Tutorial > thinkphp在wamp 配置去掉url中index.php步骤

thinkphp在wamp 配置去掉url中index.php步骤

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:17:49
Original
1098 people have browsed it

thinkphp在wamp 配置去掉url中index.php方法

调试了好久,才发现把简单的事情搞复杂了。

其实原理很简单。


1.在配置文件中

'URL_MODEL'=>2,

设置为2.


2.在php.ini中

cgi.fix_pathinfo=1

去掉前面的注释


3.在Apache下conf配置文件中,

LoadModule rewrite_module modules/mod_rewrite.so

去掉前面的注释

然后重启apache,即可。


尊重原创。

作者:新启科技

Related labels:
Statement of this Website
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
Latest Issues
url-rewrite - nginx rewrite problem
From 1970-01-01 08:00:00
0
0
0
php - apache rewrite unstable
From 1970-01-01 08:00:00
0
0
0
Ask a question about apache rewrite
From 1970-01-01 08:00:00
0
0
0
rewrite - How can nginx rewrite certain routes?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template