Welcome Guest, Not a member yet? Register   Sign In
base_url problem

Hello my problem is i have assigned base url as "http://sushanth/ci". and if i try to access my ci folder with url as "localhost/ci" it gives me error. if i change vice-verse problem still the same. if i access same pages as i defined with base url. it works fine any solution?
Thanks and regards

[eluser]Rodrigo Alexandre[/eluser]
try use router:

$route['sushanth/ci'] = "yourcontroller";

base_url should have a slash on the end of it!
$config['base_url'] = 'http://sushanth/ci/';

I have written like this
$config['base_url'] = 'http://www.mydomain.com/ABC_Workspace/Project/';
if i access these pages with above url it works but if i access it with mydomain.com (without www) then the pages or links does not work. error page is displayed.

What exactly i want is with or without www in in base url it should work. At present what the base url is there only that is accessed. If without www the css files are missing and pages which are accessed using ajax are not loading.

Please help me with your suggestions,

Thanks in advance.

Read this!

.htaccess tips and tricks

Theme © iAndrew 2016 - Forum software by © MyBB