Hello,
Firstly as a new user I would like to say hi to Opencart community.
Now to the problem.....Sometime on my site https://ka-store.co.uk I get 404 error on a page that definetly exist. After I get that error I refresh the page and loads normally. Any idea what can cause that error?
My Opencart Version is 2.3.0.2.
Thanks very much
Very strange. It does take a while for your homepage to load.
What is the contents of your .htaccess file (if enabled) ?
What is the contents of your .htaccess file (if enabled) ?
Options +FollowSymlinksuksitebuilder wrote:Very strange. It does take a while for your homepage to load.
What is the contents of your .htaccess file (if enabled) ?
# Prevent Directoy listing
Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
#RewriteCond %{HTTPS} on
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#SSL Port
RewriteCond %{SERVER_PORT} !=443
# Remove www. from any domain query
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,L]
# All broswer request get redirected to HTTPS
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
#Force non-www:
RewriteCond %{HTTP_HOST} ^www\.ka-store\.co.uk [NC]
RewriteRule ^(.*)$ https://ka-store.co.uk/$1 [L,R=301]
Seems a little messy
Backup that file and try replacing with the following
Backup that file and try replacing with the following
Code: Select all
Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://ka-store.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^ka-store\.co\.uk$
RewriteRule ^(.*)$ https://ka-store.co.uk/$1 [R=301,L]
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Done......but still doing that error.
The thing is if it was showing some error would be easier. With normal 404 page is not possible to track the problem
The thing is if it was showing some error would be easier. With normal 404 page is not possible to track the problem
Yah, 404 is unhelpful
I had a similar problem earlier today with a server that was running suPHP via .htaccess and it wasn't needed
Try removing the first line of that .htaccess file.
Failing that, you may need the assistance of your server host
I had a similar problem earlier today with a server that was running suPHP via .htaccess and it wasn't needed
Try removing the first line of that .htaccess file.
Failing that, you may need the assistance of your server host
Still the same...I will give them a shout to see if they can see more than me. I will keep you posted. Thanks for your help.
uksitebuilder...
As promosed to update you on my case .... I have fixed the problem. The problem was in the theme that I have choosen. As the theme was with loads of extensions included I suspect somewhere somthing was not working as it should be. And I didn't even need all of them. Now I'm using the default opencart theme and the website is working much faster and without any errors.
As promosed to update you on my case .... I have fixed the problem. The problem was in the theme that I have choosen. As the theme was with loads of extensions included I suspect somewhere somthing was not working as it should be. And I didn't even need all of them. Now I'm using the default opencart theme and the website is working much faster and without any errors.
Yeah of course, SO Shoppy from Magentechuksitebuilder wrote:Thanks for the update.
Can you advise what the theme was called please for future reference.
Who is online
Users browsing this forum: No registered users and 161 guests