Welcome Guest, Not a member yet? Register   Sign In
Problems configuring CodeIgniter in document root
#1

[eluser]Mr. Pickle[/eluser]
I've got some problems configuring CI in the document root.
My system and application folder is one directory up from the document root.

I had the site running within the subdirectory /preview/, so http://www.mysite.com/preview/. Nothing wrong everything worked!
In the index.php file I pointed to the system and application folder.

/preview/ case (works fine):
Code:
$system_folder = "../../system";
$application_folder = "../../application";

/ case (doesn't work)
Code:
$system_folder = "../system";
$application_folder = "../application";

As you might have understood by now, I did not change the location of the application and system folders, only the public index.php initial file.

I think it has something to do with the fact that the server is configured to display the file listing if no index file is found (only for the document root, :S) and therefore maybe the .htaccess thinks every request is for an existing file/dir.
My client is on very cheap hosting so nothing that I can configure other then some htaccess.
Or can you shut down file listing in there?

The thing that happens is that it always loads my default controller no matter what I put in my url i can have http://www.mysite.com/bla/bla/bla/bla/bla still and still get the default page of my site.

my .htaccess is standard CI stuff:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]


Messages In This Thread
Problems configuring CodeIgniter in document root - by El Forum - 07-16-2010, 02:46 PM
Problems configuring CodeIgniter in document root - by El Forum - 07-16-2010, 04:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB