CodeIgniter Forums
Problems in localhost - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problems in localhost (/showthread.php?tid=55309)



Problems in localhost - El Forum - 10-19-2012

[eluser]orabines[/eluser]
hello

Im having some problems with a website that I got from my server .. It works perfectly in the server but when i downloaded to make some changes on my localhost, it wont work

my server address is like: www.example.ca and the folder in the root of my server is example.ca

now in my localhost im typing: http://localhost:8080/example.ca/htdocs/index.php ...

when i type that in my localhost, it works but it shows me eveything without css !! and the images links dont work ..

Plus, if i click in any menu for example: about us .. it will take me to

http://localhost:8080/aboutus/ and it doesnt work anymore ..

what am I doing wrong ?


Problems in localhost - El Forum - 10-19-2012

[eluser]solid9[/eluser]
You need to change your base_url() in your config.
Change also the database settings in your database.php in the config.
And check all the settings to match your local server.


Problems in localhost - El Forum - 10-20-2012

[eluser]orabines[/eluser]
Hi Research assistant .. thank you for answering me ...

Well I did change the config files such as database.php and routes.php

but I dont get to make it work ...

This is how it looks in my web server:

root/groupa/example.ca/htdocs/index.php ---> this php file just calls my index.php view.

the directory continues like this:

root/groupa/example.ca/htdocs/system/application/views/index.php ---> this index.php is the home page.


NOW, ON THE OTHER HAND:

This is how it looks when I put it on my localhost:

appserv/www/example.ca/htdocs/system/application/views/index.php ---> and here again the home page of the website

BUT FOR SOME REASON, IT DOESNT WORK WHEN I MAKE THE CHANGES ... COULD YOU HELP ME TO KNOW WHAT i NEED TO PUT IN ROUTES.PHP to make it work?

thank you very much for your help

Regards,