Blogger Information
Blog 81
fans 1
comment 0
visits 124143
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
TP框架如何去掉入口文件index.php
有什么是忘不了的的博客
Original
872 people have browsed it

TP框架如何去掉入口文件index.php,现在很多项目上线后都会做一些然并***的操作。

我自己用tp5.1的框架去除index.php时按着tp5.1的手册一番操作后发现并不好使,

需要按着文档做完后,改一下.htaccess文件

<IfModule mod_rewrite.c> 
  Options +FollowSymlinks -Multiviews 
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d  
  RewriteCond %{REQUEST_FILENAME} !-f  
  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
 </IfModule>

这里的index.php后面需要加一个?

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post