Welcome Guest, Not a member yet? Register   Sign In
Error 404 on things after "/"
#2

Okay, I'm a little bit further.

My controllers are loading correctly now. I did it with this .htaccess (latest working version, but it works with less code too):

Code:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]


But all other stuff, like images or CSS-File are loaded as controller too... Er error message is now "404 - File Not Found - Controller or its method is not found: \App\Controllers\Dashboard::template". "Dashboard" and "Template" are directorys where the CSS-file (in this case) is located.
Reply


Messages In This Thread
Error 404 on things after "/" - by sprhld - 08-08-2021, 05:52 AM
RE: Error 404 on things after "/" - by sprhld - 08-08-2021, 06:55 AM
RE: Error 404 on things after "/" - by InsiteFX - 08-09-2021, 12:59 AM
RE: Error 404 on things after "/" - by sprhld - 08-09-2021, 09:56 AM
RE: Error 404 on things after "/" - by wuuyun - 08-09-2021, 08:03 PM
RE: Error 404 on things after "/" - by wdeda - 08-09-2021, 07:28 PM
RE: Error 404 on things after "/" - by wdeda - 08-10-2021, 06:57 AM
RE: Error 404 on things after "/" - by sprhld - 08-16-2021, 02:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB