Welcome Guest, Not a member yet? Register   Sign In
.htaccess / apache problem in URI routing?
#1

[eluser]taewoo[/eluser]
Hi everyone.

I made an app.. which I uploaded to a shared hosting service provider.
I noticed that ALL HTTP requests, regardless of URI, is coming as if they're ignored.. in another words http://server.com/page/some_where is exactly same as http://server.com/.... this is true of ANY requests. I am not certain why this is happening because I am using same index.php and .htaccess as my previous CI apps.

From what I can tell.. the database is loading correctly and the front page controller is loading.

Can someone give me an insight into this?
Here's my .htaccess
Code:
<IfModule mod_rewrite.c>
    DirectoryIndex index.php
    RewriteEngine on
    RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

</IfModule>

<IfModule !mod_rewrite.c>

    ErrorDocument 404 /index.php
</IfModule>

And my index.php (pretty standard CI index.php.. i just removed the comments)

Code:
&lt;?php
    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', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
define('FCPATH', __FILE__);
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
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;

/* End of file index.php */
/* Location: ./index.php */


Messages In This Thread
.htaccess / apache problem in URI routing? - by El Forum - 02-03-2009, 09:10 PM
.htaccess / apache problem in URI routing? - by El Forum - 02-04-2009, 06:00 PM
.htaccess / apache problem in URI routing? - by El Forum - 02-16-2009, 06:34 AM
.htaccess / apache problem in URI routing? - by El Forum - 02-16-2009, 10:48 PM
.htaccess / apache problem in URI routing? - by El Forum - 02-17-2009, 02:45 AM
.htaccess / apache problem in URI routing? - by El Forum - 02-17-2009, 03:06 AM
.htaccess / apache problem in URI routing? - by El Forum - 02-17-2009, 12:15 PM
.htaccess / apache problem in URI routing? - by El Forum - 02-17-2009, 02:49 PM
.htaccess / apache problem in URI routing? - by El Forum - 02-17-2009, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB