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

(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:
Code:
<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]
</IfModule>

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

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!!!

Markus
Reply
#2

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

Reply
#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.
Reply
#4

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

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!?
Reply
#6

(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?
Reply
#7

(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:
../modules/MODULENAME/controllers/CONTROLLERNAME/index

The Error must be in routing or htaccess i think.
Reply
#8

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

(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.
Reply
#10

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB