CodeIgniter Forums
Not Found - 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: Not Found (/showthread.php?tid=16443)

Pages: 1 2


Not Found - El Forum - 03-07-2009

[eluser]Nuage[/eluser]
I did not have that problem in my previous project.. I dont know why it happens now Sad


Not Found - El Forum - 03-07-2009

[eluser]TheFuzzy0ne[/eluser]
OK, what's your directory structure? I need to know where the system and application directories are in relation to your Web root.


Not Found - El Forum - 03-07-2009

[eluser]Nuage[/eluser]
htdocs > ci > images, system, userguide

system > application


Not Found - El Forum - 03-07-2009

[eluser]TheFuzzy0ne[/eluser]
Then your base url should look like this:
Code:
$config['base_url'] = 'http://localhost/ci/';

However, this won't fix your problem.

We need to know the name of your controller file, and the contents of it.

Also, we need to know the name of your view file, and the contents.

Assuming you're running windows, you can edit the hosts file (C:\windows\system32\drivers\etc\hosts), and add something like this:

[quote author="" date=""]
127.0.0.1 mysite
[/quote]

Then you should be able to use a URL like this:

http://mysite/ci/controller/method

You could make it mysite.com instead if you want. Basically, you should set it to whatever domain name you plan to use for your real site.

Assuming I owned the domain mysite.com, my hosts file would look like this:

[quote author="" date=""]
127.0.0.1 dev.mysite.com
[/quote]

requests to dev.mysite.com would go to the localhost, and requests to any other subdomain would go to my live site.

I'd then set my base_url as 'http://dev.mysite.com/'

Hope this helps.