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,
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,
Have you set it to https everywhere in both config files?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
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
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
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
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]
-------------------------------
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.
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>
------------------------------------
<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>
To work with HTTPS, the config.php files need to look like this:
Ernie
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/');
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.
Who is online
Users browsing this forum: Google [Bot] and 407 guests