![]() |
URL Problem - IIS Support - 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: URL Problem - IIS Support (/showthread.php?tid=58260) |
URL Problem - IIS Support - El Forum - 05-28-2013 [eluser]Unknown[/eluser] Hello , I am running codeignitor on a shared windows hosting , which uses IIS to provide PHP support. Now , when i am trying to render my project using www.mysite.com/myfolder it works ! but if I try to use something like www.mysite.com/myfolder/my_controller/my_function I am getting a 404 error . I tried to change the the following Code: $config['uri_protocol'] = 'QUERY_STRING'; Now , using the following when I navigate to www.mysite.com/myfolder/my_controller/my_function it starts rendering but it starts error about Code: <!doctype html> I have configured a web.config as follows Code: <?xml version="1.0" encoding="UTF-8"?> Code: class Pages extends CI_Controller { My Route Code: $route['default_controller'] = 'pages'; Config Code: $config['index_page'] = ''; URL Problem - IIS Support - El Forum - 05-28-2013 [eluser]TheFuzzy0ne[/eluser] What do you mean by: Quote:but it starts error about Also, I would recommend you try to find a Linux-based Web host, unless you have some compelling reason to pick a Windows server. As far as I'm aware, it's normally cheaper for starters. URL Problem - IIS Support - El Forum - 05-28-2013 [eluser]Unknown[/eluser] I finally , figured it out. Thanks a lot for the reply. The problem was I wasn't using base_url while adding my resources. Everything is work as expected. Thanks |