Good morning
I have one problem, i am trying google to index and find my second website but i can't get it working.
Site 1 is working fine and google is able to find my sitemap and working.
Site 2 is working fine but google can't open sitemap and is not building index because of that.
Site 1 is on my server and all the files are in Public_HTML Site 2 is working true Domain Pointer on the server of my first site and setup within OC 3.0.2.0 as Multi Store. This all is working fine until here i want google to be able to show and index both site's in there search engine.
What i already did;
-In public_html 2 folders with different sitemaps ( root___sitemaps/site1/sitemap.xml & root____sitemaps/site2/sitemap.xml ) and robots.txt edited to search those folders.
-In public-html 2 different sitemaps names ( root____sitemap-site1.xml & root____sitemap-site2.xml ) and robots.txt edited to search these folders.
-Some changes in .htaccess ;
RewriteBase /
RewriteCond %{HTTP_HOST} ^site1.nl$
RewriteRule ^robots.txt$ sitemap-site1.xml [L]
RewriteCond %{HTTP_HOST} ^site2.nl$
RewriteRule ^robots.txt$ sitemap-site2.xml [L]
RewriteCond %{HTTPS_HOST} ^site1.nl$
RewriteRule ^robots.txt$ sitemap-site1.xml [L]
RewriteCond %{HTTPS_HOST} ^site2.nl$
RewriteRule ^robots.txt$ sitemap-site2.xml [L]
Butt still google can't open my sitemap in my second site, how can i get google to open my sitemap and index my site so people can find my second wepsite ?
Regards
I have one problem, i am trying google to index and find my second website but i can't get it working.
Site 1 is working fine and google is able to find my sitemap and working.
Site 2 is working fine but google can't open sitemap and is not building index because of that.
Site 1 is on my server and all the files are in Public_HTML Site 2 is working true Domain Pointer on the server of my first site and setup within OC 3.0.2.0 as Multi Store. This all is working fine until here i want google to be able to show and index both site's in there search engine.
What i already did;
-In public_html 2 folders with different sitemaps ( root___sitemaps/site1/sitemap.xml & root____sitemaps/site2/sitemap.xml ) and robots.txt edited to search those folders.
-In public-html 2 different sitemaps names ( root____sitemap-site1.xml & root____sitemap-site2.xml ) and robots.txt edited to search these folders.
-Some changes in .htaccess ;
RewriteBase /
RewriteCond %{HTTP_HOST} ^site1.nl$
RewriteRule ^robots.txt$ sitemap-site1.xml [L]
RewriteCond %{HTTP_HOST} ^site2.nl$
RewriteRule ^robots.txt$ sitemap-site2.xml [L]
RewriteCond %{HTTPS_HOST} ^site1.nl$
RewriteRule ^robots.txt$ sitemap-site1.xml [L]
RewriteCond %{HTTPS_HOST} ^site2.nl$
RewriteRule ^robots.txt$ sitemap-site2.xml [L]
Butt still google can't open my sitemap in my second site, how can i get google to open my sitemap and index my site so people can find my second wepsite ?
Regards
Last edited by Marqasa on Fri Oct 08, 2021 1:43 am, edited 1 time in total.
Rewriting your robots.txt to your sitemap is just wrong and will cause you more problems. Don't use robots.txt to link to the sitemap as you only have one for all your site (unless you rewrite to a different file). Use the default htaccess and the default sitemap extension. Check in your web browser (example.com/sitemap.xml) for both sites. If all working use Google's Search Console to tell Google where your sitemaps are.
Consider yourself lucky, some people have 99.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
And decimals.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Oke so i have to delete robots.txt and have a default robots.txt and same for .htaccess. Do you have example what is in those files ? So i know i have a clean robots.txt and clean .htaccess ?ADD Creative wrote: ↑Mon Oct 04, 2021 4:19 pmRewriting your robots.txt to your sitemap is just wrong and will cause you more problems. Don't use robots.txt to link to the sitemap as you only have one for all your site (unless you rewrite to a different file). Use the default htaccess and the default sitemap extension. Check in your web browser (example.com/sitemap.xml) for both sites. If all working use Google's Search Console to tell Google where your sitemaps are.
And do i still need 2 different sitemap.xml ? So lets say site1 uses sitemap_site1.xml and site2 uses sitemap_site2.xml ?
Regards
You don't need a robots.txt. https://github.com/opencart/opencart/bl ... ss.txt#L25 shows the default .htaccess with the correct rewrite to the output of the sitemap feed. The feed will have the correct URLs for each domain as it is generated based in your store domain when accessed. You don't need separate files.
Oke so i delete the robots.txt from the root and all the sitemap files in the root i put there.ADD Creative wrote: ↑Tue Oct 05, 2021 6:51 amYou don't need a robots.txt. https://github.com/opencart/opencart/bl ... ss.txt#L25 shows the default .htaccess with the correct rewrite to the output of the sitemap feed. The feed will have the correct URLs for each domain as it is generated based in your store domain when accessed. You don't need separate files.
I now only have the default .htaccess in my root folder and in extension feed i have enabled Google Feed.
But if i want Google Search to know where the sitemap file is, were can i find the /index.php?route=extension/feed/google_sitemap on my public_html folder ?
Because i edited https://www.sit1.nl/index.php?route=ext ... le_sitemap direct in to Google Search Consuls into the sitemaps but google can't fetch the sitemap and tells me it can't fetch file if i open it in open the sitemap in the right-corner of the screen than i can open the file directly in the server and it looks fine. But no google indexing or reading of the sitemap.xml
What am i doing wrong ?
Or do i have to delete all the old sitemaps files first before editing this in Google Search ?
You don't need any sitemap.xml files, so remove them. If you now have the default .htaccess, the sitemaps should be at (via the rewrite) https://www.sit1.nl/sitemap.xml and https://www.sit2.nl/sitemap.xml. Test these in a web browser first.
Once you know they are working and all the links in them are correct. In Search console remove any other sitemaps and add the correct ones to their respective sites.
Once you know they are working and all the links in them are correct. In Search console remove any other sitemaps and add the correct ones to their respective sites.
No it only works in https://www.site1.nl/index.php?route=ex ... le_sitemap and https://www.site2.nl/index.php?route=ex ... le_sitemap than it works but when i fill in https://www.site1.nl/sitemap.xml or https://www.site2.nl/sitemap.xml i get an error ;ADD Creative wrote: ↑Tue Oct 05, 2021 4:32 pmYou don't need any sitemap.xml files, so remove them. If you now have the default .htaccess, the sitemaps should be at (via the rewrite) https://www.sit1.nl/sitemap.xml and https://www.sit2.nl/sitemap.xml. Test these in a web browser first.
Once you know they are working and all the links in them are correct. In Search console remove any other sitemaps and add the correct ones to their respective sites.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@site1.nl to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
If your .htacces is the default with no changes then look in the server error log for more details, you may need to ask your host.
I used the .htaccess in your link and now it is working so if i fill in https://www.site1.nl/sitemap.xml or https://www.site2.nl/sitemap.xml i can see the sitemap that is from that site.ADD Creative wrote: ↑Tue Oct 05, 2021 7:45 pmIf your .htacces is the default with no changes then look in the server error log for more details, you may need to ask your host.
After the index request it was working, so thank a lot i think it is working now.
Thank for you help i hope someone else also can profit from our conversation.
THANKS

Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.Marqasa wrote: ↑Wed Oct 06, 2021 1:00 amI used the .htaccess in your link and now it is working so if i fill in https://www.site1.nl/sitemap.xml or https://www.site2.nl/sitemap.xml i can see the sitemap that is from that site.ADD Creative wrote: ↑Tue Oct 05, 2021 7:45 pmIf your .htacces is the default with no changes then look in the server error log for more details, you may need to ask your host.
After the index request it was working, so thank a lot i think it is working now.
Thank for you help i hope someone else also can profit from our conversation.
THANKS![]()
Double-post: viewtopic.php?f=99&t=225752#p829679 .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Bing [Bot] and 42 guests