Welcome Guest, Not a member yet? Register   Sign In
404 on live Server

(This post was last modified: 04-02-2015, 04:31 AM by Markus_HH.)

Hi guys,
i need your help.

I've pushed my application on a linux live server and now i only get a 404 from CI.

I've tried everything i found on the web but nothig works for me  Angry

My htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /home/www/folder/
RewriteCond $1 !^(index\.php|assets|uploads|images|css|js|documents|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule .* index.php/$1 [PT,L]
RewriteRule ^(.*)$ index.php/$1 [L]

I make a apache entry like:
<VirtualHost *:80>
<Directory />
AllowOverride All
Options +Indexes
DirectoryIndex index.php
Order allow,deny
Allow from all

I use CI 3 RC2

I use HMVC modules (https://github.com/jenssegers/codeigniter-hmvc-modules)
(maybe this is the problem?!)

My log file said:
ERROR - 2015-04-01 15:59:50 --> 404 Page Not Found: ../modules/ar.../controllers/Ar.../index

Needed more info?

Thanks for any help!!!


Do you use the HMVC for CI3 (there is a download branch)?
And you should update or start with the final 3.


Jens Segers' HMVC does not support CI3 and no longer appears to be maintained. There are some pull requests on that repository for CI3 compatibility, but I have no idea if they will fix your problems.

Wiredesignz HMVC has been updated for CI3 support: https://bitbucket.org/wiredesignz/codeig...gniter-3.x

As Rufnex suggested, you should update to the final version of CI 3.0, as well.

Ok, thanks to Rufnex and Jens, ok i will use Wiredesignz HMVC!

Ok now i have installed wiredesignz HMVC and CI 3.0 but still got a 404 Angry

The CI Error log said:
ERROR - 2015-04-02 10:02:43 --> 404 Page Not Found: ../modules/xxx/controllers//index

Seems that the controller name is missing or not!?

(This post was last modified: 04-02-2015, 01:31 AM by Sharasuke.)

Quote:Are your directory permissions for /home/www/folder/ correct?
Can your apache service read/write there?
EDIT: nevermind this ^

probably something with that HMVC stuff.
Are the double slashes at the end of the path normal?

(This post was last modified: 04-02-2015, 01:41 AM by Markus_HH.)

Permissons are ok.
I think between the double slashes a controller name is missed. It should be look like:

The Error must be in routing or htaccess i think.

Do your classes file names start with a capital letter? That is necessary in CI3

(04-02-2015, 01:45 AM)Sharasuke Wrote: Do your classes file names start with a capital letter? That is necessary in CI3

Yes! Look at attachment. Thats my structure.

Because i only git this error on a linux server.. maybe there is aproblem with the capital letters? On my locale windows xampp everthing works fine.

Theme © iAndrew 2016 - Forum software by © MyBB