Nur im Hauptverzeichnis nicht :-/
Nun wollte ich den Code wieder anwenden, um:
https://www.gaming-arena.net/
weiterzuleiten auf
https://www.gaming-arena.net/de/
Dazu benutzte ich .htaccess
Code: Alles auswählen
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.gaming-arena\.net
RewriteRule ^(.*)$ http://www.gaming-arena.net/$1 [R=301,L]
Code: Alles auswählen
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Status: 301 moved Permanently");
header("Location: http://www.gaming-arena.net/de/");
header("Connection:close");
exit();
?>
Ich wüsste aber nicht wo dein ein Code seien sollte der schon vorher ausgeführt wird. *confused*Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00aa292/index.php:1) in /www/htdocs/w00aa292/index.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00aa292/index.php:1) in /www/htdocs/w00aa292/index.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00aa292/index.php:1) in /www/htdocs/w00aa292/index.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w00aa292/index.php:1) in /www/htdocs/w00aa292/index.php on line 5
Wäre lieb, wenn ihr mir helft.