After Installing SMA in live server frequently getting 404 error on every button click. Please suggest me how to fix the issue. Please refer the screenshot below.
I have already verified and updated baseurl http to https and enabled the mod_rewrite in .htaccess file and have a php8.0 version. Even after having all these proper configuration I’m getting below 404 error on both front-side as well as admin panel side.
When I’m trying to log the exception using log_threshold to 1 in the app/config/config.php But unfortunately logs are also not writing in app/logs folder.
Help me to resolve this 404 error urgently
- MSAnswered
Hello,
Please make sure that you have uploaded the
.htaccess
file. Mostly missing or wrong.htaccess
access file cause 404 not found error.If you already have .htaccess file then please check the contents. Those should be as following
DirectoryIndex index.php index.html <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase /basepath/ RewriteCond $1 !^(index\.php|assets|install|update) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # For godady Shared Hosting Server uncomment the line below RewriteRule ^(.*)$ index.php?/$1 [L] # Please comment this if you have uncommented the above # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] </IfModule>
Thank you
- TAnswered
I have verified and I have the exactly same
.htaccess
file but still getting 404 error. Please find code which is having in my.htaccess
fileDirectoryIndex index.php index.html <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase /basepath/ RewriteCond $1 !^(index\.php|assets|install|update) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # For godady Shared Hosting Server uncomment the line below RewriteRule ^(.*)$ index.php?/$1 [L] # Please comment this if you have uncommented the above # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] </IfModule>
- TAnswered
Mian Saleem I have verified and I have the exactly same
.htaccess
file but still getting 404 error. Please find code which is having in my.htaccess
fileDirectoryIndex index.php index.html <IfModule mod_rewrite.c> RewriteEngine On # RewriteBase /basepath/ RewriteCond $1 !^(index\.php|assets|install|update) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # For godady Shared Hosting Server uncomment the line below RewriteRule ^(.*)$ index.php?/$1 [L] # Please comment this if you have uncommented the above # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] </IfModule>
Please help me to solve this 404 error
- MSAnswered
Hello,
If you have the same contents of file, then please check with your server admin as they can guide you why 404 is caused.
Please let me know the installed URL in private reply to have a look.
Thank you
- Login to Reply