使用CodeIgniter框架,路径使用这种格式【http://ip:port/controller/function 】
访问的时候出现问题如下:
Not Found
The requested URL /login was not found on this server.
解决办法:
修改apache的配置文件httpd.conf
1、把"#LoadModule rewrite_module modules/mod_rewrite.so" 修改为 "LoadModule rewrite_module modules/mod_rewrite.so"
2、找到对应的<Directory>段,把"AllowOverride None" 修改为 "AllowOverride All"
3、重启apache服务