我正在使用Apache + Codeigniter来设置RESTful后端服务。
我把codeigniter的项目文件夹html/下我的Apache的web文件夹。然后我可以通过http://localhost/html/index.php访问它。我想删除url中的文件夹名,像这样访问我的网页http://localhost/index.php。
谁能告诉我如何配置在Apache方面或Codeigniter?
提前感谢!
在Apache文件夹中,只需打开文件名httpd.conf
并将此代码放在底部:
Listen 80
<VirtualHost *:80>
DocumentRoot "D:/htdocs/html/"
</VirtualHost>