我使用Codeigniter为类项目创建网站,并希望从URL中删除index.php。
我关注CodeIgniter removing index.php from url。它在本地服务器上运行良好。但是当我使用Tomcat9上传文件到服务器时,它不能工作。
我发现.htaccess不能和tomcat一起工作,对吧?
那么我如何从URL中删除index.php呢?
发布于 2019-03-13 22:59:44
你可以删除index.php并设置一些其他的东西,比如问号。
去
应用程序->配置->config.php
和set
$config['index_page'] = '?'。
https://stackoverflow.com/questions/55130487
复制相似问题