Wage ich zu bezweifeln, aber gut! Stören würds mich herzlich wenig.JG hat geschrieben:Naja, aber ein Topic mit 30 beiträgen wär dann bei Google 31 mal gelistet...
Aktualisieren ist nun mal Sache von Google & Co.
und net meine...

Wage ich zu bezweifeln, aber gut! Stören würds mich herzlich wenig.JG hat geschrieben:Naja, aber ein Topic mit 30 beiträgen wär dann bei Google 31 mal gelistet...
das /nuforum solltest du noch rausnehmen und ggf. durch den pfad zu deinem board ersetzen.JG hat geschrieben:wenn ich eine robots.txt mit dem Inhalt hierErstelle, dann werden doch alle Beiträge nicht erkanntCode: Alles auswählen
User-agent: msnbot Crawl-Delay: 10 User-agent: Slurp Crawl-Delay: 10 User-agent: Googlebot Disallow: /*? User-agent: * Disallow: /nuforum/admin/ Disallow: /nuforum/album_mod/ Disallow: /nuforum/cache/ Disallow: /nuforum/db/ Disallow: /nuforum/docs/ Disallow: /nuforum/images/ Disallow: /nuforum/includes/ Disallow: /nuforum/language/ Disallow: /nuforum/mods/ Disallow: /nuforum/templates/ Disallow: /nuforum/xs_mod/ Disallow: /nuforum/album Disallow: /nuforum/common Disallow: /nuforum/extension Disallow: /nuforum/faq Disallow: /nuforum/groupcp Disallow: /nuforum/login Disallow: /nuforum/map Disallow: /nuforum/memberlist Disallow: /nuforum/modcp Disallow: /nuforum/posting Disallow: /nuforum/privmsg Disallow: /nuforum/profile Disallow: /nuforum/rating Disallow: /nuforum/report Disallow: /nuforum/search Disallow: /nuforum/fpost Disallow: /nuforum/ptopic Disallow: /nuforum/ntopic Disallow: /nuforum/post-
![]()
JG
Code: Alles auswählen
RewriteCond %{REQUEST_URI} ^/impressum\.html
RewriteRule (.*) /impressum.php [L]
Code: Alles auswählen
$prefix . '(?<!/)viewonline.php"|',
Code: Alles auswählen
$prefix . '(?<!/)impressum.php"|',
Code: Alles auswählen
'"online.html"',
Code: Alles auswählen
'"impressum.html"',
Code: Alles auswählen
// Output the RDF
echo $rdf;
Code: Alles auswählen
function replace_for_mod_rewrite(&$s) {
// get the correct base_url: protocoll,url,path to make sure to rewrite only internal links
if (empty($HTTP_SERVER_VARS['HTTP_HOST'])) {
$server = getenv('HTTP_HOST');
} else {
$server = $HTTP_SERVER_VARS['HTTP_HOST'];
}
// IIS sets HTTPS=off
if (isset($HTTP_SERVER_VARS['HTTPS']) && $HTTP_SERVER_VARS['HTTPS'] != 'off') {
$proto = 'https://';
} else {
$proto = 'http://';
}
// Get the name of this URI
// Start of with REQUEST_URI
if (isset($HTTP_SERVER_VARS['REQUEST_URI'])) {
$path = $HTTP_SERVER_VARS['REQUEST_URI'];
} else {
$path = getenv('REQUEST_URI');
}
if ((empty($path)) || (substr($path, -1, 1) == '/')) {
// REQUEST_URI was empty or pointed to a path
// Try looking at PATH_INFO
$path = getenv('PATH_INFO');
if (empty($path)) {
// No luck there either
// Try SCRIPT_NAME
if (isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) {
$path = $HTTP_SERVER_VARS['SCRIPT_NAME'];
} else {
$path = getenv('SCRIPT_NAME');
}
}
}
$path = preg_replace('/[#\?].*/', '', $path);
$path = dirname($path);
if (preg_match('!^[/\\\]*$!', $path)) {
$path = '';
}
$base_url = "$proto$server$path/";
$prefix = '|(?:'.$base_url.')?';
// now that we know about the correct $prefix we can start the rewriting
$urlin =
array(
$prefix . '(?<!/)index.php\?mark=forums|',
$prefix . '(?<!/)index.php|',
$prefix . '(?<!/)index.php\?c=([0-9]*)|',
$prefix . '(?<!/)viewforum.php\?f=([0-9]*)&(?:amp;)topicdays=0&(?:amp;)start=0|',
[SNIP]
$prefix . '(?<!/)viewonline.php|',
);
$urlout = array(
'"index-mark.html"',
'"index.html"',
'"category\\1.html"',
'"forum\\1.html"',
[SNIP]
'"online.html"',
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
replace_for_mod_rewrite($rdf);
Code: Alles auswählen
$urlin =
array(
$prefix . 'index.php\?mark=forums|',
$prefix . 'index.php|',
$prefix . 'index.php\?c=([0-9]*)|',
$prefix . 'viewforum.php\?f=([0-9]*)&(?:amp;)topicdays=0&(?:amp;)start=0|',
[SNIP]
$prefix . 'viewonline.php|',
);
$urlout = array(
$base_url . 'index-mark.html',
$base_url . 'index.html',
$base_url . 'category\\1.html',
$base_url . 'forum\\1.html',
[SNIP]
$base_url . 'online.html',
);