You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When placing CI3 a couple folders down from the root, and one of those folders is multiple words separated by spaces, CI3 does not handle spaces in folder names in base_url well, and this causes it to misidentify the controller class and method.
Steps to reproduce
Windows 10
Get an Apache web server running (can use XAMPP)
Set the web server's base directory to somewhere.
Make the following folders in the web server's base directory: '/Folder 1/Folder2/Folder3'. Note the space in Folder 1.
Download latest CI3, place in Folder3.
Configure whatever variables needed to get CI3 mostly running. For example setting $config['base_url'] = 'http://localhost/Folder 1/Folder2/Folder3/'; or $config['base_url'] = 'http://localhost/Folder%201/Folder2/Folder3/';
Turn on the profiler
Visit http://localhost/Folder 1/Folder2/Folder3/index.php. CI will load but it will not load $route['default_controller'] like it's supposed to, it will load the 404 page instead.
Look at the class/method section of the profiler. Will say 'Folder%201/Folder2' instead of the correct controller class and method.
The text was updated successfully, but these errors were encountered:
When placing CI3 a couple folders down from the root, and one of those folders is multiple words separated by spaces, CI3 does not handle spaces in folder names in base_url well, and this causes it to misidentify the controller class and method.
Steps to reproduce
$config['base_url'] = 'http://localhost/Folder 1/Folder2/Folder3/';
or$config['base_url'] = 'http://localhost/Folder%201/Folder2/Folder3/';
http://localhost/Folder 1/Folder2/Folder3/index.php
. CI will load but it will not load$route['default_controller']
like it's supposed to, it will load the 404 page instead.The text was updated successfully, but these errors were encountered: