.htaccess 灵活授权演示+;Codeigniter在Xampp本地主机上不工作
我在我的在线网站上安装了flexi-auth-demo,效果很好 但是我在本地主机上有问题。我想定制它&为此我需要在localhost上工作。我有以下设置:具有CI+XAMPP+Windows7的本地主机 目录结构:.htaccess 灵活授权演示+;Codeigniter在Xampp本地主机上不工作,.htaccess,codeigniter,authentication,xampp,.htaccess,Codeigniter,Authentication,Xampp,我在我的在线网站上安装了flexi-auth-demo,效果很好 但是我在本地主机上有问题。我想定制它&为此我需要在localhost上工作。我有以下设置:具有CI+XAMPP+Windows7的本地主机 目录结构: http://localhost/xampp/prj/pub <- Here I have index.php & .htaccess file http://localhost/xampp/prj/main/system <- This is
http://localhost/xampp/prj/pub <- Here I have index.php & .htaccess file
http://localhost/xampp/prj/main/system <- This is CI System folder
http://localhost/xampp/prj/main/application <- This is CI Application folder
我用[http://localhost/xampp/prj/pub]要访问flexi auth演示,将打开主页。但是,当我点击“尝试演示”时,我会进入xampp默认web根目录,即[http://localhost/xampp]&显示此文件夹的目录列表
我一直在通过更改基本路径和不同的.htaccess参数进行检查,但没有成功。目前我已经设置了我的基本url:[http://localhost/xampp/prj/pub/]在auth_lite.php文件中
我认为问题在于.htaccess或xampp的设置需要更改
有人能帮我吗 尝试将您的prj文件夹移出
xampp
目录,使其成为htdocs
文件夹的子目录。然后您可以通过http://localhost/prj
您可能还需要更改配置文件application/config/config.php中的base\u url
$config['uri_protocol'] = 'AUTO';
任何错误都可以在xampp根目录的php/logs目录中找到。在config.php中
$config['uri_protocol'] = 'AUTO';
换成
$config['uri_protocol'] = 'PATH_INFO';
在协同信号器框架中