我在此应用程序的子文件夹中有核心php应用程序和codeigniter。我想隐藏单个控制器的CI文件夹名称。就像
原始网址是
http://example.com/ci/welcome/test
和例外的URl是
http://example.com/welcome/test
这个
的htaccess基础解决方案是什么?答案 0 :(得分:1)
请使用此:
this.registerHandler(this.uploader,'FilesAdded', function (up, files) {
if (_.get(self.props, 'multi_selection') === false) {...});
答案 1 :(得分:0)
我得到了解决方案
RewriteRule ^([a-zA-Z0-9-_']+)/([a-zA-Z0-9-_']+) ci/$1/$2 [L,NC,QSA]
require_once BASEPATH.'core/CodeIgniter.php';
更改为require_once APPPATH.'core/CodeIgniter.php';
3关于APPPATH.'core / CodeIgniter.php'搜索$ RTR并将此代码放在后面
if( $RTR->class =='mainfoldername' ){
$RTR->class =$RTR->method;
$RTR->method = $RTR->uri->rsegments[3];
$total_segment = count( $RTR->uri->segments );
foreach( $RTR->uri->segments as $k=>$uri ){
if( $k != $total_segment ){
$RTR->uri->segments[$k] = $RTR->uri->segments[$k+1];
$RTR->uri->rsegments[$k] = $RTR->uri->rsegments[$k+1];
}
}
}
答案 2 :(得分:0)
试试这些
RewriteRule ^(。*)$ ci / $ 1 [L]