• 19-07-2010, 12:31:01
    #1
    Merhaba arkadaşlar bir kaç saattir araştırmama rağmen işe yarayan bir çözüm bulamadım
    http://en.site.com veya http://tr.site.com diye adres girildiğinde http://www.site.com adresine yönlendirilmesini istiyorum.
    Ve mümkünse adres çubuğunda yine "http://en.site.com" veya "http://tr.site.com" yazması lazım.

    *.site.com.	CNAME	site.com.
    yaptım olmadı
    ayrı ayrı yaptım yine olmadı
    en.site.com.	CNAME	site.com.
    tr.site.com.	CNAME	site.com.
    Açılan sayfada:
    Apache is functioning normally
    yazıyor sadece...

    Nasıl yapabilirim?
  • 19-07-2010, 12:42:19
    #2
    .htaccess dosyanı bu sekilde düzenle

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.tr.site.com/$ [NC]
    RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]

    yönlendikten sonrada adresin kalması nasıl yapılır bilmiyorum
  • 19-07-2010, 15:51:04
    #3
    Denedim ama sayfalarda herhangi bir değişiklik olmadı. Sayfalar yine "Apache is functioning normally" şeklinde geliyor.
    Üstelik ana sayfada yani www.site.com'da şu hata oluştu:

    Alıntı
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@****.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b DAV/2 PHP/5.2.10 Server at www.***.com Port 80

    Sorun nerde???
  • 19-07-2010, 16:09:54
    #4
    Üyeliği durduruldu
    Belirttiğin subdomainlere index atıp meta refresh ilede yapabilirsin. Alternatif bir çözüm
  • 19-07-2010, 16:14:04
    #5
    @Alone : Çok fazla sayfa var, biraz karışık olur gibi geldi... Yine de saol
  • 19-07-2010, 17:02:50
    #6
    CURL veya iframe.
  • 19-07-2010, 20:13:41
    #7
    DNS'le yapmanın yolu yok mudur?
  • 20-07-2010, 15:20:32
    #8
    Panelinden subdomainleri direk yönlendirme yapıyo olabilmelisin
  • 21-07-2010, 20:45:16
    #9
    Konu yabancı gelmedi bana;
    Directadmin -> Domain Pointers