Post by Quino » Sat Mar 07, 2020 1:51 am

and why do you have this in your htaccess?

Code: Select all

index.php?route=extension/feed/simple_google_sitemap
when the normal url should be

Code: Select all

index.php?route=extension/feed/google_sitemap
not that the htaccess rewrite is important but do you have different sitemaps?

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by Sportfreunde » Mon Mar 09, 2020 7:56 pm

Es besteht jetzt noch dieser Fehler. Fehlt da noch ein Befehl siehe Anhang

Attachments

Unbenannt-1.jpg

Unbenannt-1.jpg (126.36 KiB) Viewed 464 times


New member

Posts

Joined
Sat Nov 30, 2019 4:46 am

Post by straightlight » Mon Mar 09, 2020 8:01 pm

Sportfreunde wrote:
Mon Mar 09, 2020 7:56 pm
Es besteht jetzt noch dieser Fehler. Fehlt da noch ein Befehl siehe Anhang
This is an English forum ...

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Quino » Mon Mar 09, 2020 8:48 pm

is that now the
index.php?route=extension/feed/simple_google_sitemap or the
index.php?route=extension/feed/google_sitemap?

In any event looks like you have some © character in there somewhere.

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by Sportfreunde » Tue Mar 10, 2020 12:34 am

Oops sorry

This error still exists. If there is still a command missing, see Appendix.

This is from the: index.php? Route = extension / feed / simple_google_sitemap

Opencart also creates the: simple_google_sitemap under extensions / feeds

What can I do now?

New member

Posts

Joined
Sat Nov 30, 2019 4:46 am

Post by sw!tch » Tue Mar 10, 2020 2:14 am

simple_google_sitemap is an extension you need to contact the developer.

Try just using the default sitemap.

What happens if you just visit. index.php?route=extension/feed/google_sitemap ?

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Location - USA

Post by Sportfreunde » Wed Mar 11, 2020 1:06 am

Sitemap is finally working. Thanks a lot for this! Do I have to change anything in the .htaccess file for security? Blocker or what else that is all safe?

New member

Posts

Joined
Sat Nov 30, 2019 4:46 am

Post by Quino » Wed Mar 11, 2020 1:43 am

no security need.
personally I cache the sitemap which helps if it is very large and you could do some restrictions on user-agent that only requests from search engines are honored as with large sitemaps it takes some processing and you do not want that done for any nosy bot or user out there.

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by Sportfreunde » Wed Mar 11, 2020 5:37 pm

What restrictions should the sitemap contain?

New member

Posts

Joined
Sat Nov 30, 2019 4:46 am

Post by Quino » Wed Mar 11, 2020 6:06 pm

none really, I just limit the audience of the requests.

I put after index()

Code: Select all

if (!preg_match(BOTMATCH, $_SERVER['HTTP_USER_AGENT'])) {
	echo 'Sorry, not for you.';
	return;
}
and in config.php

Code: Select all

define('BOTMATCH', '/bot\/|bot\.|\.bot|:bot|\(bot|abot|kbot|lbot|nbot|pbot|vbot|zbot|obot|dbot|ebot|-bot|bot-|_bot|2bot|nbot|rbot|tbot|sbot|hbot|cbot|mbot|ybot|xbot|crawl|seek|scanner|slurp|spider/i');
so that not every curious user or machine out there can trigger a sitemap generation by requesting the url, only bots with user agents which match that pattern.
Not for security reasons, just to limit unnecessary server load by unnecessary requests.

New member

Posts

Joined
Fri Feb 28, 2020 1:19 am

Post by Sportfreunde » Thu Mar 12, 2020 7:19 pm

Thank you for your answer. I can't find an index () in .htacces

Which config.php do you mean? In which folder is the.

Thank you for your help

New member

Posts

Joined
Sat Nov 30, 2019 4:46 am
Who is online

Users browsing this forum: No registered users and 20 guests