用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1255|回复: 3
收起左侧

[版本 3.x] URL去掉后index.php后,控制器前有两个"//"

[复制链接]
发表于 2016-9-17 22:28:25 | 显示全部楼层 |阅读模式
URL去掉后index.php后,控制器前有两个"//"
http://127.0.0.1/ci//home/denglu



在线等大佬回复。谢谢!

发表于 2016-9-18 20:28:15 | 显示全部楼层
是不是根目录下的.htaccess文件配置有误呢?
发表于 2016-9-18 20:59:43 | 显示全部楼层
伪静态文件:.htacess添加下面一段
发表于 2016-9-18 21:00:19 | 显示全部楼层
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(crossdomain.xml|index.html|index.php|robots.txt|favicon.ico|css|doc|html|images|js|upload)
RewriteRule ^(.*)$ index.php/$1 [L]


如果没有伪静态文件的话就新建一个

本版积分规则