• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Got Internal Server Error (HTTP 500 Response Code) while using redirect() function

#1
[eluser]Unknown[/eluser]
Hi,

I was writing a login form. I want the page to be redirected using redirect() if the login succeeded after set some session values. But it seems doesn't work. I got HTTP 500 Response code from the server. Can you help me with this?

FYI: URL Helper has been loaded.

#2
[eluser]Unknown[/eluser]
SOLVED..!! Please delete the topic Smile

#3
[eluser]John_Betong_002[/eluser]
Please supply the solution to your original problem and also prefix [SOLVED] to the post title.

This will help others when searching who have similar problems.
 
 
 

#4
[eluser]JohnnyAction[/eluser]
I agree, please post a solution. I'm having this same problem. I have my app on a shared BlueHost server and now I've moved it to an Amazon EC2 instance and I get HTTP 500 error. I think it's because I use a lot of redirects.

How did you solve this?

#5
[eluser]bobbob[/eluser]
Did anyone ever solve this?
My site loads but it looks like certain pages are possibly generating minor errors that are for some reason triggering a 500 error. Environment is set to dev so I should get errors on the screen.

On ec2 with CI 2.1 and PHP Version 5.3.14 and Mysql 5.5.24.
basic amazon instance( first one the on the list)

Please don't add [solved] without a solution. ;-)

Tx


EDIT In my case I had a few opening php tags without <?php but just <?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.