rgk
rgk

Reputation: 810

Unable to access codeigniter controller in Live Server but accessible in localhost (xampp on windows)

My project working fine on local system (XAMPP) , however when uploaded to hosting server its not working. Im Using Codeigniter framework. accesible in localhost via "localhost/myproject/controller" , but in host server unable to access via myproject.com/controller or even myproject.com/index.php/controller !!

On server, main domain is (lets suppose D.COM and add on domain is AD.COM). My application is installed under addon domain. hence my folder structure is

public html/
            AD.COM/
                  application/
                              Config
                              Controllers
                              Modules
                              Views
                  System/
                 User_guide/
                .htaccess

.htaccess contains this code

DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA]

Also maintained these variables

$config['base_url'] = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';

how to fix this. I tried googling but didnt get any help. Thanks in advance.

Upvotes: 3

Views: 1467

Answers (1)

Abdulla Nilam
Abdulla Nilam

Reputation: 38584

Please be concern about Codeigniter naming conversion and Keep mind Linux host is Case-Sensitive.

You are not providing any resources related to your question. So have to tell is check about Spellings of your url and controller names and methods which you will call further.

Upvotes: 3

Related Questions