Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-01-2018 10:57:20

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Google Shopping

How do you Set-Up Google Shopping for Multi sites. I have Google Shopping on the Default Site.

Thanks, Gary

Offline

 

#2 02-02-2018 09:12:16

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

Assuming you have MultiSite active, and you have product offers on each site that are visible and can be exported to a Google Shopping Feed, and you have the Google Shopping Feed extension module activated, the feed files are already being generated for you. 

They'll appear in the {public}/utilities directory.  The filename for the default site is always 'googlebase.xml'.  For any additional multisites, the files will contain their identifiers, as in: googlebase-SITE2ID.xml, googlebase-SITE3ID.xml, etc.  You just need to point your Google Mechant Center account associated with each of the multisites to the correct XML feed file URL.

Additionally, you'll notice if you have Sitemaps running, sitemap.xml and multisite sitemap-X.xml files will be in {public}/utilities as well.  You'd manage the associated domains and their sitemaps at Google using the Search Console (Webmaster Tools).


Nick Hendler

Offline

 

#3 02-02-2018 11:06:24

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

So on sitemap I would submit Like.


http://www.default.com/sitemap-id2.xml   and    http://www.default.com/sitemap-id3.xml  ?

Thanks, Gary

Last edited by gfrracing (02-02-2018 12:05:28)

Offline

 

#4 02-05-2018 11:22:09

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

Exactly.


Nick Hendler

Offline

 

#5 02-06-2018 14:01:24

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

Nick   I keep getting a 404 error.  Do I have to do a setting override ? if so what would that look like ?

We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

1

General HTTP error: 404 not found
HTTP Error: 404

when I use      http://www.default.com/sitemap-id2.xml

Last edited by gfrracing (02-06-2018 14:35:55)

Offline

 

#6 02-07-2018 08:20:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

Apologies.  You are missing an .htaccess rule on your MultiSite (id2).  Currently you have a mirror set up on that, and you need to add a proper rewrite for the sitemap and googlebase XML files.  Here's a sample of what that should look like (assuming you're running full SSL on all domains, and no 'www' prefix):

Code:

Options +FollowSymLinks +Indexes
RewriteEngine on

#### WWW to Non-WWW

RewriteCond %{HTTP_HOST}  ^www.multidomain.com [NC]
RewriteRule ^(.*)         https://multidomain.com/$1 [L,R=permanent]

#### Force HTTPS

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://multidomain.com/$1 [L,R=permanent]

#### Static

RewriteRule ^robots\.txt$ robots.txt [L,PT]

#### Mirror Special: SiteMap

RewriteRule ^sitemap\.xml$ https://maindomain.com/utilities/sitemap-SITEID.xml [L,P]
RewriteRule ^googlebase\.xml https://maindomain.com/utilities/googlebase-SITEID.xml [L,P]

#### Mirror

RewriteRule ^(.*)$ https://maindomain.com/$1 [P]

Nick Hendler

Offline

 

#7 02-07-2018 11:44:44

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

We do I need to put this rule at ?

Offline

 

#8 02-08-2018 08:20:49

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

You are missing an .htaccess rule on your MultiSite (id2).

On the secondary site(s), not the main site.  Right now you have just mirrors set up on the secondary sites.  Add the necessary .htaccess rules from post 6 above to fill those .htaccess files out properly.


Nick Hendler

Offline

 

#9 02-08-2018 11:45:10

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

I don't understand were to Add the necessary .htaccess rules from post 6 above to fill those .htaccess files out properly.

I am being kind of a dummy here.

Offline

 

#10 02-09-2018 08:20:05

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

You have a primary site (your main site) that has your K9 install and a bigger .htaccess file on it that contains K9 rules, NOT THAT ONE.

You have secondary site(s) which have nothing on them but .htaccess files that set up mirrors that point to your main site, THESE ARE THE FILES TO MOD.  You could basically take the template I provided in post 6, replace 'maindomain.com' with your main K9 domain name, and 'multidomain.com' with the domain you're working with, and drop it in.  Assuming you're running full SSL with no 'www' prefixes.


Nick Hendler

Offline

 

#11 02-09-2018 12:13:19

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

Is this what I need to Replace ?  This is under original-htaccess File ? this is the only thing in this File. this is the only file that I can find.

What Iam getting at is Where is the File that I need to change. I know I need to change it but where is the file at do I go in to the Hosting Account or where at.

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^index.php - [L,PT]
RewriteRule ^$ index.php?COREseourl=/ [L,PT]
RewriteRule ^/$ index.php?COREseourl=/ [L,PT]
RewriteRule ^sitemap\.xml utilities/sitemap.xml [L,PT]
RewriteRule ^rss\.xml utilities/rss.xml [L,PT]
RewriteCond %{REQUEST_URI} ^/
RewriteCond %{REQUEST_URI} !\.(xml|css|js|gif|jpg|jpeg|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?COREseourl=/$1 [L,PT]

Last edited by gfrracing (02-09-2018 15:13:44)

Offline

 

#12 02-12-2018 08:47:11

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

No.  You need to edit the .htaccess file.  That file may be hidden from view, depending on how you're looking at the files.


Nick Hendler

Offline

 

#13 02-12-2018 11:01:47

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

This the File ?         Do I need to replace this File with Number 6 ?

Or do I make a new File ?



#### Turn Rewite Engine On

Options +FollowSymLinks
RewriteEngine on

#### Static

RewriteRule ^robots\.txt$ robots.txt [L,PT]
RewriteRule ^favicon\.ico$ favicon.ico [L,PT]

#### Mirror Special: SiteMap

RewriteCond %{HTTPS} off
RewriteRule ^sitemap\.xml$ http://gfrracing.com/utilities/sitemap-DirtDecast.xml [L,P]

RewriteCond %{HTTPS} on
RewriteRule ^sitemap\.xml$ https://gfrracing.com/utilities/sitemap-DirtDiecast.xml [L,P]

#### Mirror

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ http://gfrracing.com/$1 [P]

RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://gfrracing.com/$1 [P]

Last edited by gfrracing (02-12-2018 11:06:34)

Offline

 

#14 02-13-2018 08:37:21

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

OK.  Forget everything I said.  You found your multisite's .htaccess file.  This is the file you'll want to edit.  You already have a sitemap rule in there that handles the sitemap and pulls it up as:

https://dirtdiecast.com/sitemap.xml

However, you have a typo in there which is preventing the non-SSL version from loading.  You should be using id 'DirtDiecast' not 'DirtDecast'.  One you fix that, this will work too:

http://dirtdiecast.com/sitemap.xml

Additionally, you should add rules for the Google Shopping Feed.  Add these right above the comment 'Mirror':

Code:

#### Mirror Special: Google Shopping

RewriteCond %{HTTPS} off
RewriteRule ^googlebase\.xml$ http://gfrracing.com/utilities/googlebase-DirtDecast.xml [L,P]

RewriteCond %{HTTPS} on
RewriteRule ^googlebase\.xml$ https://gfrracing.com/utilities/googlebase-DirtDiecast.xml [L,P]

Nick Hendler

Offline

 

#15 02-14-2018 10:55:30

gfrracing
Member
Registered: 07-03-2010
Posts: 72
Website

Re: Google Shopping

Thanks, Nick  Got it all Working Now !!!!

Offline

 

#16 03-05-2018 14:13:52

ciamciaj
Member
From: zaslawski
Registered: 02-26-2018
Posts: 1
Website

Re: Google Shopping

I have the same problem as my colleague gfrracing , but after applying to your help I still can not deal with it. Can anyone help?


odzież skórzana i futra 

Offline

 

#17 03-06-2018 08:16:47

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Google Shopping

Please post your URLs and current .htaccess files for each and we can take a stab at it for you.


Nick Hendler

Offline

 

Board footer