Page 1 of 1

Home Page 404 error after enabling SEO

Posted: Fri Jun 07, 2019 7:18 pm
by zerBdak
Hi all,
I am using OpenCart 3.0.3.1 with Journal Theme.
After enabling SEO I am getting 404 error only for the home page. All other pages are working properly.
I have read a lot of forum posts referring exactly the opposite (home page OK but all others 404).

I have checked all the SEO enabling checklist.
- .htaccess (renamed - I am using the default one)
- installation is found in root folder (public_html) so RewriteBase /
- mod_rewrite enabled on server (other pages work - so no problem)

Clicking the eshop logo goes to https://www.mydomain.com/index.php?route=common/home (no SEO keyword for this URL yet) and everything works properly.
Clicking to the Home page (custom link to OpennCart home) returning to 404 error page.
In general https://www.mydomain.com goes to 404 error page.
It needs https://www.mydomain.com/index.php in order to work properly.

Last thing I would like to mention is that admin folder has been renamed to "customname" with the proper changes in config.php file in admin folder.

Any help is well appreciated.
Thank you in advance

Re: Home Page 404 error after enabling SEO

Posted: Sat Jun 08, 2019 4:38 am
by D3MO
make sure you dont have any index.html or index.htm (as these files loads first) then index.php by the way what is your url?

Re: Home Page 404 error after enabling SEO

Posted: Sat Jun 08, 2019 3:40 pm
by cedcommerceteam
Hello zerBdak,

Generally, website opens with https://domainname.com, we need not to put index.php or index.html, but yes it should have a index.html or index.php or index.htm because it reads index file first, so please once check modification folder is there something which has overridden your home page path or path link i.e., why it needs https://www.mydomain.com/index.php instead of https://www.mydomain.com.

I hope this answer will help you in resolving your issue.

Thanks & Regards :

Re: Home Page 404 error after enabling SEO

Posted: Sun Jun 09, 2019 12:57 am
by zerBdak
Hi and thanks for your suggestions.
There are no index.htm or index.html files in root folder.
After further investigation it seems that the problem comes from NGINX.
My server uses Engintron (NGINX for cPanel). Disabling NGINX everything works properly.
Any advise about this?

Thank you

Re: Home Page 404 error after enabling SEO

Posted: Tue Jun 11, 2019 2:40 pm
by cedcommerceteam
Hello ZerBdak,

Is there any file or some code that overrides in NGINX for your websites index page

Please see to it, there must be any Ocmod or vQmod file that is over-riding your index page

Thanks & Regards :

Re: Home Page 404 error after enabling SEO

Posted: Wed Jun 19, 2019 8:30 pm
by zerBdak
For those who are facing the same issue.
The issue caused by a ModSecurity rule "Output filter: Response body too large".
Nothing to do with ENGINTRON, NGINX or PHP-FPM.
A proper configuration in mod_sec user config solved the issue.
Thanks for your time!