Welcome Guest, Not a member yet? Register   Sign In
Is This CI uri Correct?
#1

[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.
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB