Note that there are some explanatory texts on larger screens.

plurals
  1. POcodeigniter working fine on local but not on web server. 404 Error
    primarykey
    data
    text
    <p>Codeigniter is working fine on local server but not on web server.</p> <p>I used <code>XAMPP</code> for the development on local. </p> <p>I am using Parallels Plesk Panel 11.0.9 for Microsoft Windows. </p> <p><strong>404 error page of codeigniter is not loading. Url is loadind 404 error page of the server. I have removed all</strong> <code>.htacces</code> <strong>rewrite rules of root directory and included</strong> <code>index.php</code>. <strong>Still it isn't working.</strong></p> <p>Searched alot but couldn't find right solution</p> <p>Directory for codeigniter folders(site, application, system)</p> <p>is </p> <pre><code>mysite/httpdocs/demo/test/ </code></pre> <p>Base url in <em>mysite/httpdocs/demo/test/application/config/config.php</em></p> <pre><code>$config['base_url'] = 'http://mysite/httpdocs/demo/test/site/'; </code></pre> <p>In <em>mysite/httpdocs/demo/test/application/.htaccess</em></p> <pre><code>Deny from all </code></pre> <p>Envoirment set in index.php (<em>mysite/httpdocs/demo/test/site/index.php</em>)</p> <pre><code>switch (dirname(__FILE__)) { case 'http://mysite/httpdocs/demo/test/site': define('ENVIRONMENT', 'development'); break; default: define('ENVIRONMENT', 'production'); break; } $system_path = '../system'; $application_folder = '../application'; </code></pre> <p>In <em>mysite/httpdocs/demo/test/site/.htaccess</em></p> <pre><code> &lt;IfModule mod_rewrite.c&gt; Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] &lt;/IfModule&gt; </code></pre> <p>In <em>mysite/httpdocs/demo/test/application/config/routes.php</em></p> <pre><code> $route['default_controller'] = "page"; $route['404_override'] = 'page'; $route['article/(:num)/(:any)'] = 'article/index/$1/$2'; </code></pre> <p>I am giving url <em>mysite/demo/test/site</em> and <strong>its giving 404 error page of web server not of codeigniter</strong></p> <p>Where am I wrong here?</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.
    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