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.
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).
Offline
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
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
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):
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]
Offline
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.
Offline
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.
Offline
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
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
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':
#### 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]
Offline