Note that there are some explanatory texts on larger screens.

plurals
  1. POPage 404 CodeIgniter index.php
    primarykey
    data
    text
    <p>I have this problem regarding Codeigniter, unfortunately other posts regarding this problem in this site does not help me or I did not apply it well.</p> <p><strong>Edits* Added Screenshot:</strong></p> <p><img src="https://i.stack.imgur.com/bMqCC.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/3U9UM.png" alt="enter image description here"></p> <p>My Directory Structure:</p> <ul> <li>scheduler(main folder) <ul> <li><strong>system</strong> <ul> <li><strong>application</strong> <ul> <li>config(folder)</li> <li>controller(folder) <ul> <li><strong>BS.php</strong></li> </ul></li> </ul></li> </ul></li> <li>and other folders and files</li> <li><strong>index.php</strong></li> </ul></li> </ul> <p>As the title says, when I type </p> <p><strong><a href="http://mysite.com/folder/index.php" rel="nofollow noreferrer">http://mysite.com/folder/index.php</a></strong></p> <p>It outputs Page 404 not found. But, when I typed <strong><a href="http://mysite.com/scheduler/index.php/BS" rel="nofollow noreferrer">http://mysite.com/scheduler/index.php/BS</a></strong> it shows "This is a BS File" since I echoed it using the code below.</p> <p><strong>BS.php</strong></p> <pre><code> function index($flag = NULL) { echo "This is a BS File."; } </code></pre> <p><strong>routes.php</strong></p> <pre><code>$route['default_controller'] = "BS"; $route['scaffolding_trigger'] = ""; </code></pre> <p><strong>index.php</strong></p> <pre><code>error_reporting(E_ALL); $system_folder = "system"; $application_folder = "application"; if (strpos($system_folder, '/') === FALSE) { if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE) { $system_folder = realpath(dirname(__FILE__)).'/'.$system_folder; } } else { // Swap directory separators to Unix style for consistency $system_folder = str_replace("\\", "/", $system_folder); } define('EXT', '.php'); define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); define('FCPATH', str_replace(SELF, '', __FILE__)); define('BASEPATH', $system_folder.'/'); if (is_dir($application_folder)) { define('APPPATH', $application_folder.'/'); } else { if ($application_folder == '') { $application_folder = 'application'; } define('APPPATH', BASEPATH.$application_folder.'/'); } require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; </code></pre> <p>And lastly, my <strong>config.php</strong></p> <pre><code>$config['base_url'] = "http://" . $_SERVER['HTTP_HOST']. "/scheduler/"; $config['secure_base_url'] = "https://" . $_SERVER['HTTP_HOST']. "/scheduler/"; $config['index_page'] = "index.php"; $config['uri_protocol'] = "REQUEST_URI"; </code></pre> <p>Doing it for days now, still not a single process has given. Would be glad for any help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload