Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 404 #16

Open
m-yahya-khattak opened this issue Jul 24, 2019 · 4 comments
Open

error 404 #16

m-yahya-khattak opened this issue Jul 24, 2019 · 4 comments

Comments

@m-yahya-khattak
Copy link

RewriteEngine On RewriteBase /schoolerp RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /schoolerp/index.php/$1 [L]

that's what i updated .htaccces file to.

still getting error 404

@razorsharpshady
Copy link

I Changed the controllers,models file name to ucfirst and it worked on the server.
Basically you'll have to change all the php file names to ucfirst if it contains classes.
e.g home.php to Home.php
accounts.php to Accounts.php
get_model.php to Get_model.php

@Daanishh
Copy link

Getting 404 ERROR..!
anyone solved it yet?
Do I need to ucfirst each controller / models / views ?

@huclilu
Copy link

huclilu commented Nov 16, 2022

RewriteEngine On RewriteBase /schoolerp RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /schoolerp/index.php/$1 [L]
that's what i updated .htaccces file to.

still getting error 404

Change it to my way:

.htaccess:

RewriteEngine On #rename "codeIgniter213" with your application directory #For example you rename the entire CodeIgniter application as "mysite" #then, the "RewriteBase /" will be like this "RewriteBase /mysite" #same as at line number 10, "RewriteRule ^(.*)$ /codeIgniter213/index.php #/$1 [L]" will be like this "RewriteRule ^(.*)$ /mysite/index.php/$1 [L]"

RewriteBase /SchoolERP
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /SchoolERP/index.php?$1 [L]

@Ameelh
Copy link

Ameelh commented May 22, 2024

I Changed the controllers,models file name to ucfirst and it worked on the server. Basically you'll have to change all the php file names to ucfirst if it contains classes. e.g home.php to Home.php accounts.php to Accounts.php get_model.php to Get_model.php

Thanks! it only give a login page but after that home/admin_login page which appears to be missing again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants