Welcome Guest, Not a member yet? Register   Sign In
HELP:redirect function works on localhost, but not on live server
#2

[eluser]RobertSF[/eluser]
As you may know, the Codeigniter URL helper redirect has an almost identical counterpart in PHP called header.

Try using the PHP function with the following syntax:
Code:
header ('Location: http://www.example.com/etc_etc');

The location should be a complete URL with http and www and everything.

If it still doesn't work, I think that might have something to do with the live server's .htaccess file.

If it does work, did you copy the CI system from local to live server too or did you install CI fresh on the live server? Either way, you possibly need to change a configuration setting.


Messages In This Thread
HELP:redirect function works on localhost, but not on live server - by El Forum - 10-27-2014, 03:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB