Pavan G S
Pavan G S

Reputation: 101

codeigniter files not working on godaddy windows hosting

When I'm trying to acess below url not getting any response:

http://subdomain.domain.com/index.php/Admin/index/

My codeigniter files present in:

http://subdomain.domain.com

in my .htacces file:

RewriteEngine on 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L]

in my config.php file:

$config['base_url'] = 'http://subdomain.domain.com/';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'AUTO';

Upvotes: 0

Views: 535

Answers (1)

qcsites
qcsites

Reputation: 51

.htaccess

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

in config you will need to list the domain wit a traling slash and remove the index.php

$config['base_url'] = "http://subdomain.domain.com/";
$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";

URL to go to if you have an index controller method in your Admin controller the path to it then should be http://subdomain.domain.com/admin/

Controllers and methods described here http://www.codeigniter.com/user_guide/tutorial/static_pages.html

Upvotes: 1

Related Questions