CodeIgniter Forums
Is This CI uri Correct? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Is This CI uri Correct? (/showthread.php?tid=57977)



Is This CI uri Correct? - El Forum - 05-01-2013

[eluser]Vik[/eluser]
I'm using CI 2.x for the first time, after using CI 1.7x on a number of web apps. Everything works fine on my development system. I have just moved my app from my development system to the server. My welcome controller gets called, and the first thing it does is to call:

Code:
redirect('/auth/login/');

This goes to function redirect($uri) in url_helper.php, a CI helper. url_helper calls:

Code:
$uri = site_url($uri);

...and receives back this uri:

Quote:http://domainname.com/clientName/auth/login.html

This uri gives me a 404 error. Here is the folder layout:

Code:
public_html
----clientName/
--------application/
--------system/

Is the uri correct? Thanks in advance to all for any info.


Is This CI uri Correct? - El Forum - 05-01-2013

[eluser]Vik[/eluser]
Solved! My web host requires the following line in the htaccess file to enable a php5 web app:

Code:
AddType application/x-httpd-php5 .php