Welcome Guest, Not a member yet? Register   Sign In
Internal Server Errors
#1

[eluser]phused[/eluser]
I recently read the documentation and have started to use CodeIgniter by creating some custom controllers although I am having a problem, this is what my controller file is currently looking like:

Code:
<?php
class Tickets extends Controller {

    function index()
    {
        $this->load->view('welcome_message');
    }
    
    function new()
    {
        $this->load->view('welcome_message');
        #$this->load->scaffolding('table_name');
    }
    
    function view()
    {
        $this->load->view('welcome_message');
        #$this->load->scaffolding('table_name');
    }
}
?>

I'm trying to access my controller using the following URLs:

# http://domain.com/tickets/
# http://domain.com/tickets/new
# http://domain.com/tickets/reply

However, none of these URLs work, Apache returns the following error:

Quote:Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@Prashant.eu and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

This is what my error logs says:

Quote:[Fri Sep 12 14:41:46 2008] [error] [client 82.22.74.xxx] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

Can anyone tell me what I'm doing wrong and how to solve this problem?

Thanks in advance Smile
#2

[eluser]Sumon[/eluser]
give a try with http://domain.com/index.php/tickets/new if you are not using any .htaccess

moreover,set config\config.php file base_url as
Code:
$config['base_url']    = "http://domain.com/";
#3

[eluser]phused[/eluser]
Looks like my .htaccess was messed up, thanks for pointing that out!
#4

[eluser]chrisco23[/eluser]
Care to say what change was necessary?

I'm hitting the same problem. I have a site that works fine on my server, but does not work on the target server (my friend's shared host server). The only other significant difference I've identified is that on my VPS I am using mod_php whereas the shared host is running PHP as a CGI.




Theme © iAndrew 2016 - Forum software by © MyBB