szlhtljt 发表于 2016-9-17 22:28:25

URL去掉后index.php后,控制器前有两个"//"

URL去掉后index.php后,控制器前有两个"//"
http://127.0.0.1/ci//home/denglu



在线等大佬回复。谢谢!

fzzlee2k 发表于 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


如果没有伪静态文件的话就新建一个
页: [1]
查看完整版本: URL去掉后index.php后,控制器前有两个"//"