Hallo,
ist es möglich für eine Website, die zweisprachig angelegt wurde + realURL, zwei verschiedene robots.txt zu erzeugen. Sprich, erzeugen geht, aber darauf auch zu verlinken via htaccess?
Habe mein Typo3-Web und darin den Ordner /robots in dem zwei Dateien liegen: robots_en.txt und robots_de.txt
Per htaccess dann folgender Aufruf:
Geht aber irgendwie nicht?! Können andere Regeln dazwischen funken?HTML-Code:RewriteEngine On RewriteCond %{HTTP_HOST} www.meinedomain.de$ [NC] RewriteRule robots.txt /robots/robots_de.txt RewriteCond %{HTTP_HOST} www.meinedomain.com$ [NC] RewriteRule robots.txt /robots/robots_en.txt
Gesamte htaccess:
Weiß nicht an was es liegen könnte und bin über jede Hilfe dankbar.HTML-Code:### REWRITE <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} www.meinedomain.de$ [NC] RewriteRule robots/robots.txt /robots/robots_de.txt RewriteCond %{HTTP_HOST} www.meinedomain.com$ [NC] RewriteRule robots/robots.txt /robots/robots_en.txt # Always http #RewriteCond %{SERVER_PORT} !80$ #RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] RewriteRule ^/(.*):SSL$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] # Allways www. RewriteCond %{HTTP_HOST} ^meinedomain\.com$ RewriteRule ^(.*)$ http://www.meinedomain.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^meinedomain\.co.uk$ RewriteRule ^(.*)$ http://www.meinedomain.co.uk/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^meinedomain\.de$ RewriteRule ^(.*)$ http://www.meinedomain.de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^meinedomain\.at$ RewriteRule ^(.*)$ http://www.meinedomain.at/$1 [R=301,L] # Rule for versioned static files, configured through: # - $TYPO3_CONF_VARS['BE']['versionNumberInFilename'] # - $TYPO3_CONF_VARS['FE']['versionNumberInFilename'] # IMPORTANT: This rule has to be the very first RewriteCond in order to work! RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L] # Stop rewrite processing if we are in standard TYPO3 directories RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|robots/|typo3temp/|uploads/|favicon\.ico) - [L] RewriteRule ^typo3$ typo3/index_re.php [L] # Do not rewrite static resources RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l # Rewrite the rest to index.php RewriteRule .* /index_redirect.php [L] </IfModule>
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen