Getting 404 Error On Each Click After Installation

0

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

Question Resolved For: Stock Manager Advance with All Modules 0 Votes 4 Answers 1.1k Views
Asked by Techuser 1 year ago

0

Answered by Mian Saleem 1 year ago

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

0

Answered by Techuser 1 year ago

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 file

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>

0

Answered by Techuser 1 year ago

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 file

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>

Please help me to solve this 404 error

0

Answered by Mian Saleem 1 year ago

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

We use Cookies

We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.