简体   繁体   中英

How to access codeigniter files from one directory to another different directory

I have XAMP installation, with htdocs in D drive. I copied Codeigniter/System folder to E drive. Now when i type http://localhost , i should able to access E:/Codeigniter/System/index.php How can i achieve this.

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. You should be able to access your codeigniter installation by this URL http://127.0.0.1

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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