my url of forum are with ID (monsite.com/forum/forum-f1.html) so when I select à forum with the ACP to have the meta robots "noarchive" on this forum it works.
the problem is with my url of topics which are without forum ID because the option virtual folders is OF. my topics url are : monsite.com/forum/sujet-t1.html, so the topics of a noarchive forum are not noarchive.
is it possible, by adding something in phpbb_seo_meta.php :
- Code: Select all
if (!empty($config['seo_meta_noarchive'])) {
$forum_id = isset($_GET['f']) ? max(0, (int) request_var('f', 0)) : 0;
if ($forum_id) {
$forum_ids = @explode(',', preg_replace('`[\s]+`', '', trim($config['seo_meta_noarchive'], ', ')));
if (in_array($forum_id, $forum_ids)) {
$this->meta['robots'] .= (!empty($this->meta['robots']) ? ',' : '') . 'noarchive';
to ensure that the topics in a noarchive forum but with a url without forum ID will be also in noarchive, or the only solution to have noarchive topics for topics in a noarchive forum is to have virtual folders ON so that my topics url are monsite.com/forum/forum-f1/sujet-t1.html ?
(I would perfer not activate virtual folders).
thank you for my answer, and excuse me for my bad english.

English |
French
