php - Base url is not working
595
When i use base_url as
$config['base_url'] = 'http://localhost';
It redirects to localhost/login/validate and shows object not found. Any idea why? But it works perfectly in live server when i set base_url to domain.
$config['base_url'] = 'http://designhub.com.np/educare';
Answer
Solution:
you can use this code in config.php
you can use it local as well as on server too
Answer
Solution:
When your on a local host set it some thing like
When use live domain
Answer
Solution:
You should write the folder name in which the project files are: (with localhost)
As your live server has your project files under root folder like public_html so you can use base_url as you mentioned.
But with local, write folder name after
localhost
as I have mentioned.