Post by larproman » Tue Mar 19, 2019 9:03 am

Hi all,
Having trouble with search engines, especially Goggle.
OC V 3.0.2.0
site: autoandmarine.com.au
All my site's pages are https://
I checked my sitemap and it lists ALL <loc> as http: (not https:)
My sitemap lists SOME <image:loc> as https: and SOME <image:loc> as http:
ALL the <image:loc> in the bottom half of my sitemap are http:
Goggle says this is a mismatch. This could explain why I have so many errors?
I was using http: for a month before I went to https:
I am looking to confirm the problem, find why this could have happened (me) and how to fix it.
Thanks in advance,

New member

Posts

Joined
Sun Apr 29, 2018 8:37 am

Post by paulfeakins » Tue Mar 19, 2019 5:53 pm

Have you set it to https everywhere in both config files?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by larproman » Wed Mar 20, 2019 5:42 am

Hi Paul,
Um, no I don't think so.
I will try and find info on this.
Graeme

New member

Posts

Joined
Sun Apr 29, 2018 8:37 am

Post by larproman » Wed Mar 20, 2019 1:39 pm

Hi,
I found my htaccess and config files, looks like I have to edit them.
I found some info on the forum but when I changed my files my site went down so I had to put my files back where they were.
Is there somewhere with files that work?
Graeme

New member

Posts

Joined
Sun Apr 29, 2018 8:37 am

Post by paulfeakins » Wed Mar 20, 2019 7:30 pm

larproman wrote:
Wed Mar 20, 2019 1:39 pm
Is there somewhere with files that work?
No you can't just use files from somewhere else as they have to be specific to your site.

In config.php and /admin/config.php try changing http: to https: everywhere it appears.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by larproman » Thu Mar 21, 2019 10:54 am

Hi,
Thanks again for your help.
I only had to change my admin/ file, all good so far.
My sitemap now lists everything as https://
Just have to wait for Goggle to catch up.
Graeme

New member

Posts

Joined
Sun Apr 29, 2018 8:37 am

Post by mbkilimci » Sun May 05, 2019 12:01 am

i also have same problem opencart Version 3.0.3.2
htaccess file all okay
both config files also okay
i dont find it wheres the problem
my config files
---------------------
// HTTP
define('HTTP_SERVER', 'http://www.yunuscomputer.com/admin/');
define('HTTP_CATALOG', 'http://www.yunuscomputer.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.yunuscomputer.com/admin/');
define('HTTPS_CATALOG', 'https://www.yunuscomputer.com/');
------------------
my htaccess file
---------------------------------
# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^yandex_sitemap.xml$ index.php?route=extension/feed/yandex_sitemap [L]
RewriteRule ^yandex_sitemap.xml$ index.php?route=extension/feed/yandex_sitemap [L]
RewriteRule ^system/storage/(.*) 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]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-------------------------------
Last edited by mbkilimci on Sun May 05, 2019 12:05 am, edited 1 time in total.

New member

Posts

Joined
Mon Apr 13, 2015 3:58 am

Post by mbkilimci » Sun May 05, 2019 12:02 am

my sitemap.xml like this
------------------------------------
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>http://www.yunuscomputer.com/admin/E4809-436-100</loc>
<changefreq>weekly</changefreq>
<lastmod>2019-05-03T13:11:22+00:00</lastmod>
<priority>1.0</priority>
<image:image>
<image:loc>
https://www.yunuscomputer.com/admin/ima ... _popup.jpg
</image:loc>
<image:caption> Okuma E4809-436-100 OPUS7000 DRAM CARD</image:caption>
<image:title> Okuma E4809-436-100 OPUS7000 DRAM CARD</image:title>
</image:image>
</url>
<url>
<loc>http://www.yunuscomputer.com/admin/DSQC679</loc>
<changefreq>weekly</changefreq>
<lastmod>2019-04-29T16:06:08+00:00</lastmod>
<priority>1.0</priority>
<image:image>
<image:loc>
https://www.yunuscomputer.com/admin/ima ... _popup.jpg
</image:loc>
<image:caption>Abb DSQC679 3HAC028357-001 Lcd Panel</image:caption>
<image:title>Abb DSQC679 3HAC028357-001 Lcd Panel</image:title>
</image:image>
</url>

New member

Posts

Joined
Mon Apr 13, 2015 3:58 am

Post by IP_CAM » Sun May 05, 2019 1:18 am

To work with HTTPS, the config.php files need to look like this:

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://www.yunuscomputer.com/admin/');
define('HTTP_CATALOG', 'https://www.yunuscomputer.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.yunuscomputer.com/admin/');
define('HTTPS_CATALOG', 'https://www.yunuscomputer.com/');
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by mbkilimci » Mon May 06, 2019 12:43 am

problem solved thanks

New member

Posts

Joined
Mon Apr 13, 2015 3:58 am
Who is online

Users browsing this forum: Google [Bot] and 407 guests