Weiterleitung http://domain.com auf http://www.domain.com
Weiterleitung http://domain.com auf http://www.domain.com
Hallo,
Wollte mal fragen, wie man am besten http://domain.com/.*? auf http://www.domain.com/$1 umleitet. Also so, wie auch hier im Forum.
Wollte mal fragen, wie man am besten http://domain.com/.*? auf http://www.domain.com/$1 umleitet. Also so, wie auch hier im Forum.
Re: Weiterleitung http://domain.com auf http://www.domain.com
Per PHP Script:
Waere das z.B. moeglich einfach als index.php speichern und in das Root dir von domain.tld legen.
Brummige Gruesse
Teddy
Code: Select all
<?php header ("Location: http://deinziel.tld/subdir"); exit; ?> Waere das z.B. moeglich einfach als index.php speichern und in das Root dir von domain.tld legen.
Brummige Gruesse
Teddy
Re: Weiterleitung http://domain.com auf http://www.domain.com
Hi,
Ist leider keine Lösung.
Ersteinmal laufen Aufrufe á la http://domain.com/subdir/, etc. normalerweise nicht über /index.php, zweitens dachte ich da eher an etwas über .htaccess.
Trotzdem danke.
Ist leider keine Lösung.
Ersteinmal laufen Aufrufe á la http://domain.com/subdir/, etc. normalerweise nicht über /index.php, zweitens dachte ich da eher an etwas über .htaccess.
Trotzdem danke.
Re: Weiterleitung http://domain.com auf http://www.domain.com
Hm- Verstehe ich richtig das z.B.
http://blablabla.de nur nach http://www.blablabla.de weitergeleitet werden soll?
http://blablabla.de nur nach http://www.blablabla.de weitergeleitet werden soll?
Re: Weiterleitung http://domain.com auf http://www.domain.co
mod_rewriteLucideye wrote:Wollte mal fragen, wie man am besten http://domain.com/.*? auf http://www.domain.com/$1 umleitet.
Re: Weiterleitung http://domain.com auf http://www.domain.com
Ja, aber nicht nur.TeddyBear wrote:Hm- Verstehe ich richtig das z.B.
http://blablabla.de nur nach http://www.blablabla.de weitergeleitet werden soll?
So wie auch hier im Forum, inklusive des gesamte Pfades.
Klick doch mal:
http://www.rootforum.org/forum/viewtopic.php?t=17850
wird weitergeleitet auf:
http://www.rootforum.org/forum/viewtopic.php?t=17850
Re: Weiterleitung http://domain.com auf http://www.domain.co
Ich will ja nicht umschreiben, ich will einen 301-Redirect.Joe User wrote:mod_rewriteLucideye wrote:Wollte mal fragen, wie man am besten http://domain.com/.*? auf http://www.domain.com/$1 umleitet.
Re: Weiterleitung http://domain.com auf http://www.domain.com
Geht auch mit mod_rewrite. [R]
Re: Weiterleitung http://domain.com auf http://www.domain.com
bitte selbst anpassen:
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_URI} ^{.*}.html$
RewriteRule ^(.*).html$ /$1.xhtml [R=301,L]
Re: Weiterleitung http://domain.com auf http://www.domain.com
Jo, super. Danke.Joe User wrote:bitte selbst anpassen:Code: Select all
RewriteEngine On RewriteCond %{REQUEST_URI} ^{.*}.html$ RewriteRule ^(.*).html$ /$1.xhtml [R=301,L]
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1?%{QUERY_STRING} [R=permanent,L]
