URL Problem - IIS Support |
[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'] = '';
[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.
[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 |
Welcome Guest, Not a member yet? Register Sign In |