Welcome Guest, Not a member yet? Register   Sign In
500 Error With Routing
#1

[eluser]Unknown[/eluser]
After I enter in the URL http://localhost:8080/ci_app a 500 error page appears. Currently the .htaccess file from http://codeigniter.com/wiki/mod_rewrite is being used. Mod rewrite is already enabled. Does anyone have any ideas as to what is causing the level 500 error?


.htaccess File Contents
---------------------------------------
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /ci_app

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>
---------------------------------------


This is the only line added to routes.php: $route['test'] = "test/test";


httpd.conf File Contents
---------------------------------------
Code:
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080

<VirtualHost 127.0.0.1:8080>
  DocumentRoot "/var/www/ci_app"
  DirectoryIndex index.php
  <Directory "/var/www/ci_app">
    Options Indexes Includes FollowSymLinks MultiViews
    AllowOverride AuthConfig FileInfo
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>
---------------------------------------




Theme © iAndrew 2016 - Forum software by © MyBB