Zaten her domain icin ayri bir klasorde root yok mu ki?
3 domainin aynı web alanına yani aynı index dosyasına yönlendirildiği bir durumda, girilmiş olunan web adresine göre indexten direk farklı dosyalara yönlendirmeyi nasıl bir script ile yapabiliriz?
yani mesela a.com, b.com ve c.com 'un üçü de index.htm'ye geliyor. ama index.htm dosyasına koyacağımız bir scriptin; a.com'a için gelen istekleri a.htm'ye, b.com'a gelen istekleri b.htm'ye, c.com'a gelen istekleri c.htm'ye göndermesi gerekiyor.
Zaten her domain icin ayri bir klasorde root yok mu ki?
Sanırım dns' ten domain alias yaptınız, index.htm ASP olsa ;
Kod:<% Dim Adres Adres=Request.ServerVariables("HTTP_HOST") Adres = replace(Adres, "www." , "", 1, -1, 1 ) If Adres="a.com" Then Response.Redirect("a.htm") ElseIf Adres="b.com" Then Response.Redirect("b.htm") ElseIf Adres="c.com" Then Response.Redirect("c.htm") End If %>
Aradığım böyle bir koddu arsende teşekkürler