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

[eluser]Unknown[/eluser]
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
#2

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

Code:
$route['sushanth/ci'] = "yourcontroller";
#3

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

[eluser]Unknown[/eluser]
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.
#5

[eluser]InsiteFX[/eluser]
Read this!

.htaccess tips and tricks




Theme © iAndrew 2016 - Forum software by © MyBB