Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Quelle:https://sebastians-pamphlets.com/google ... -redirect/The best idea is to use 301/302s directly whenever possible; otherwise, next best is to do a metarefresh with 0 for a 301. I don’t believe we recommend or support any 302-alternative.
das funktioniert doch nicht (oder).Redirect permanent /bla.html https://www.neue-domain.de/bla.html
Code: Alles auswählen
Redirect permanent / http://www.neue-domain.de/
Stimmt nicht ganz!JohnBi hat geschrieben:so müsste es eigentlich aussehenCode: Alles auswählen
Redirect permanent / http://www.neue-domain.de/
Code: Alles auswählen
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.neue-url.com" ); ?>
ergibt<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>grz cyrtic</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: https://www.buggy125.de" ); ?>
</div>
</body>
</html>
hmmm?Warning: Cannot modify header information - headers already sent by (output started at /home/www/web151/html/ein-platz-fuer-freunde/index.php:8) in /home/www/web151/html/ein-platz-fuer-freunde/index.php on line 8
ergibt<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>grz cyrtic</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: https://www.buggy125.de" ); ?>
</div>
</body>
</html>
hmmm?Warning: Cannot modify header information - headers already sent by (output started at /home/www/web151/html/ein-platz-fuer-freunde/index.php:8) in /home/www/web151/html/ein-platz-fuer-freunde/index.php on line 8
Code: Alles auswählen
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.buggy125.de" ); ?>
Code: Alles auswählen
RewriteCond %{HTTP_HOST} !^www\domain\.de$ [NC]
RewriteRule ^(.*)$ http://www.domain.de/$1 [R=301,L]