繁体   English   中英

如何删除? 来自codeigniter的redirect('controller / function')

[英]how to remove ? from redirect('controller/function') from codeigniter

登录成功后,我想重定向到redirect('signinup/loginsucess')

我在本地主机上运行。 ?到达身份证? 在链接中。 我要删除?

我的查询启用字符串为true,而我的htaccess为

RewriteEngine On
RewriteBase /kkci/
RewriteCond $1 ^(application|system|private|logs)
RewriteRule ^(.*)$ index.php/access_denied/$1 [PT,L]
RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|public|assets|css|js|images)
RewriteRule ^(.*)$ - [PT,L]
RewriteRule ^(.*)$ index.php/$1 [PT,L]
$config['enable_query_strings'] = TRUE;

更改为

$config['enable_query_strings'] = FALSE;

但是您是否需要$config['enable_query_strings'] = TRUE;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM