CodeIgniter Forums
How to access server other folder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: How to access server other folder (/thread-66395.html)



How to access server other folder - milan alphansotech - 10-18-2016

Hello friends

For testing, I download & setup CI4 on my local development PC. to set document root path I set up the virtual host. Now my question is if I do this on hosting server then how can I access server other folders. By default, it's not set to PUBLIC folder as a document root. when we request to our domain its point to root path and then if we call any folder then simply call that folder by '/folder-name'. for an example : 

Domain : www.example.com

Folder : ABC

call server folder : www.example.com/abc

now if set document root path to www.example.com/public then how we can access the ABC & other folders ?


RE: How to access server other folder - ridho - 10-19-2016

Try using filesystem helper


RE: How to access server other folder - milan alphansotech - 10-19-2016

(10-19-2016, 03:27 AM)ridho Wrote: Try using filesystem helper

for can example I put the mini application on ABC folder when I call www.example.com/abc , that application called (this application is not build using CI).

Filesystem helper is part of CI framework.


RE: How to access server other folder - kilishan - 10-19-2016

Put the folders in the public folder, and point the webroot to the public folder, then you should be fine.

Or, you could go back to a more traditional "flat" layout by moving things out of the public folder, and editing the paths in index.php.