Welcome Guest, Not a member yet? Register   Sign In
Only Default controller loads, CI 2.1.2, php 5.3.15
#1

[eluser]Unknown[/eluser]
As the title say, i have a problem that only the default controller is loading,
I've developed a project on CI 2.1.2 and tried to put it on a server with php 5.3.15.
But no luck,,

It always loads the default controller.

Something important to know is that IC runs on a subfolder or Subdomain.

for any more information, i have an extended post on StackOverflow.com. But due though little views i thought to ask it at the developers core of code igniter, here on ellislab!

SO Reference: http://stackoverflow.com/questions/21540...-subfolder

I'll provide all requested information to solve this! any idea is welcome!

EDIT: Added additional information

My Settings:

Code:
$config['uri_protocol'] = "REQUEST_URI";  
$config['index_page'] = '';
$config['base_url']= 'http://www.mywebsite.nl/klanten';
or for the subdomain:

Code:
$config['base_url']= 'http://klanten.mywebsite.nl/';

My htaccess:

Code:
DirectoryIndex index.php
RewriteEngine on

RewriteCond $1 !^(index\.php|img|stylesheets|javascript)
RewriteCond $1 !^(index\.php|img|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
#2

[eluser]noideawhattotypehere[/eluser]
what do u mean only default controller loads? what happens when you try to point to other url? (not default controller/method)
#3

[eluser]Unknown[/eluser]
Every url i navigate to responds with the same view/code from Defaultcontroller/index

For example.
So if i go to mywebsite.com/CIfolder/DefaultController/index,
I get Welcome to the homepage.

If i go to mywebsite.com/CIfolder/Login/index
i get also: Welcome to the homepage.. When it should be: Login here..
#4

[eluser]noideawhattotypehere[/eluser]
Try this .htaccess and tell me if this helps

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




Theme © iAndrew 2016 - Forum software by © MyBB