Hallo,
habe eine Addresse http://www.xyz.DE
auf http://www.xyz.DE/port befindet sich nun etwas das kommen soll wenn ich auf http://www.xyz.COM gehe
Habe dazu einen virtual host in der apache conf gemacht mit einem
RedirectMatch ^/$ /port/
Wenn ich auf http://www.xyz.COM gehe funktioniert dies alles bestens. Nur steht dann da die Adresse http://www.xyz.COM/port
Ich möchte aber das da nur http://www.xyz.COM steht (ohne das port)
Wie komme ich da ans Ziel?
RedirectMatch Frage
Re: RedirectMatch Frage
Code: Select all
Redirect permanent / http://www.domain.com/PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: RedirectMatch Frage
Vielen Danke. Leider hab ich das schon probiert und es macht bei mir genau das was es nicht sollteJoe User wrote:Code: Select all
Redirect permanent / http://www.domain.com/
Ich gehe auf http://www.domain.com in der Adresszeile steht dann http://www.domain.de/port
Ich möchte aber das wenn ich auf http://www.domain.com gehe den Inhalt von http://www.domain.de/port sehe jedoch in der Adresszeile http://www.domain.com
-
sledge0303
- Posts: 695
- Joined: 2005-09-16 00:06
- Location: Berlin-Reinickendorf
- Contact:
Re: RedirectMatch Frage
Kann es sein das du 'mod_rewrite' suchst und Rules dafür erstellen möchtest?!
-
Roger Wilco
- Posts: 5923
- Joined: 2004-05-23 12:53
Re: RedirectMatch Frage
Dann setze einfach das DocumentRoot des VirtualHosts für http://www.domain.com auf das entsprechende Verzeichnis.Meddten wrote:Ich möchte aber das wenn ich auf http://www.domain.com gehe den Inhalt von http://www.domain.de/port sehe jedoch in der Adresszeile http://www.domain.com
-
marcooooooo
- Posts: 15
- Joined: 2007-04-30 16:31
- Location: Mendencity
- Contact:
Re: RedirectMatch Frage
würde ich auch mit mod_rewrite machen (http://www.modrewrite.de/.
einfach eine datei ".htaccess" erstellen in die du dann folgenden codeschnipsel schreibst:
und die datei lädst du dann auf domain.com hoch..
:-D
einfach eine datei ".htaccess" erstellen in die du dann folgenden codeschnipsel schreibst:
Code: Select all
RewriteEngine on
RewriteRule ^index.html(.*?)$ http://www.domain.de/port$1
:-D
