简体   繁体   English

如何将Codeigniter文件从一个目录访问到另一个目录

[英]How to access codeigniter files from one directory to another different directory

I have XAMP installation, with htdocs in D drive. 我安装了XAMP,D驱动器中带有htdocs。 I copied Codeigniter/System folder to E drive. 我将Codeigniter / System文件夹复制到E驱动器。 Now when i type http://localhost , i should able to access E:/Codeigniter/System/index.php How can i achieve this. 现在,当我键入http:// localhost时 ,我应该可以访问E:/Codeigniter/System/index.php。

Quick and dirty: open httpd.conf (usually located in /XAMPINSTALLDIR/apache/conf), replace all "D:/xampp/htdocs" occurrences with "E:/Codeigniter" and restart your apache server. 快速又肮脏:打开httpd.conf(通常位于/ XAMPINSTALLDIR / apache / conf中),将所有出现的“ D:/ xampp / htdocs”替换为“ E:/ Codeigniter”,然后重新启动apache服务器。 You should be able to access your codeigniter installation by this URL http://127.0.0.1 您应该能够通过以下URL http://127.0.0.1访问您的codeigniter安装。

more sensible: Learn about apache virtual hosts ( http://httpd.apache.org/docs/2.1/vhosts/ ) and add a new virtual host with the appropriate document root. 更明智:了解有关apache虚拟主机( http://httpd.apache.org/docs/2.1/vhosts/ )的信息,并添加一个具有相应文档根目录的新虚拟主机。

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

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