Welcome Guest, Not a member yet? Register   Sign In
Whenever I enter a url which isn't the default, I get redirected to dir above root
#8

[eluser]gunnarflax[/eluser]
[quote author="d1a8lo24" date="1302643872"]OK please let me know how is your CI installation setup in your local host.

Example:

/ //root of the site
/application
/system
index.php
.htaccess

and tell me just the changes that you made to your config file on CI so that I can replicate the problem.

I did see that one of your configurations that doesn't look correct but there is probably a reason why.

Code:
// Reason for the "admin"? if is just to go straight to the login you can do that through // the routes file.
$config['base_url'] = 'http://localhost/admin/';
[/quote]

The reason for the "admin" is that I have multiple projects in my localhost directory and this is the directory where I have the CodeIgniter installation and my application which I call "admin" for the time being.

This is my project hierarchy:
Code:
Localhost +-- admin (root) +--- (dir) system
                           +--- (dir) application
                           +--- (dir) style
                           +--- index.php
                           +--- .htaccess

Where in my .htaccess is this supposed to go?

Code:
RewriteCond $1 !^(index\.php|css|js|img|assets|files|modules|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]


Messages In This Thread
Whenever I enter a url which isn't the default, I get redirected to dir above root - by El Forum - 04-12-2011, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB