PHPstudy隐藏index.php前缀

Apache

第一步:

打开phpstudy=>其他选择菜单=>php扩展及设置=>Apache 模块

第二步: 

找到rewrite_module,开启rewrite_module就行了

Nginx

打开PHPstudy

nignx/conf下有vhosts.conf这个文件的话,在这个文件里配置,当有这个文件的时候,在nginx.conf里配置是不起作用的。没有的话就在nginx.conf文件配置在location/{}

加上这句  try_files $uri $uri/ /index.php?$query_string;

修改完成之后重启下PHPstudy即可!