SchoolErp icon indicating copy to clipboard operation
SchoolErp copied to clipboard

error 404

Open m-yahya-khattak opened this issue 5 years ago • 4 comments

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

m-yahya-khattak avatar Jul 24 '19 08:07 m-yahya-khattak

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

razorsharpshady avatar Sep 03 '19 06:09 razorsharpshady

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

Daanishh avatar Oct 18 '22 17:10 Daanishh

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] </IfModule>

huclilu avatar Nov 16 '22 13:11 huclilu