• 03-02-2010, 18:55:06
    #1
    Üyeliği durduruldu
    sitemde www sub domaınını zorunlu kılmak ıstıyorum xxx.com olarak gıren kısıler sitede herhangi bir linke tıkladıklarında www.xxx.com olarak işlemlerine devam etmelerini istiyoru.sanırım .htaccess ile yapılabiliyormuş bu.yardım edebilir misiniz ?
  • 03-02-2010, 22:36:45
    #2
    Üyeliği durduruldu
    Eğer cPanel kullanıyorsan galiba paneldeki DNS ayarlarındanda bu işi halledebilirsin.
  • 05-02-2010, 09:13:24
    #3
    Üyeliği durduruldu
    plesk kullanıyorum da bu rewrite yazılarak olabılıyormus sanırım
  • 05-02-2010, 09:31:10
    #4
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.siteadresi\.com
    RewriteRule (.*) http://www.siteadresi.com/$1 [L,R=301]

    htaccess e bunları eklerseniz olacaktır.

    Biraz araştırma yapsanız zaten bulurdunuz. https://www.r10.net/webmaster-genel-k...post1060375411
  • 05-02-2010, 09:57:59
    #5
    Üyeliği durduruldu
    bunu ekleyince yönlendirme geçersiz hatası alıyorum
    .htaccess
    # Rewrite engine options
    Options FollowSymLinks -Indexes
    RewriteEngine On
    # Server-relative path to seditio:
    RewriteBase /
    # Engine Shortcuts
    RewriteRule ^user__(.+)\.html(#.*)?$ users.php?rwr=m-details__ual-$1$2 [NC,NE,L]
    RewriteRule ^c-(.+)\.html(#.*)?$ list.php?rwr=c-$1$2 [NC,NE,L]
    RewriteRule ^i-([0-9]+)-[^_]+(.*)\.html(#.*)?$ page.php?rwr=id-$1$2$3 [NC,NE,L]
    RewriteRule ^i-(.+)\.html(#.*)?$ page.php?rwr=id-$1$2 [NC,NE,L]
    RewriteRule ^a-(.+)\.html(#.*)?$ page.php?rwr=al-$1$2 [NC,NE,L]
    RewriteRule ^p-(.+)\.html(#.*)?$ plug.php?rwr=e-$1$2 [NC,NE,L]
    RewriteRule ^o-(.+)\.html(#.*)?$ plug.php?rwr=o-$1$2 [NC,NE,L]
    RewriteRule ^s-([0-9]+)-[^_]+(.*)\.html(#.*)?$ forums.php?rwr=m-topics__s-$1$2$3 [NC,NE,L]
    RewriteRule ^s-(.+)\.html(#.*)?$ forums.php?rwr=m-topics__s-$1$2 [NC,NE,L]
    RewriteRule ^q-([0-9]+)-[^_]+(.*)\.html(#.*)?$ forums.php?rwr=m-posts__q-$1$2$3 [NC,NE,L]
    RewriteRule ^q-(.+)\.html(#.*)?$ forums.php?rwr=m-posts__q-$1$2 [NC,NE,L]
    RewriteRule ^t-([0-9]+)-[^_]+(.*)\.html(#.*)?$ forums.php?rwr=m-posts__p-$1$2$3 [NC,NE,L]
    RewriteRule ^t-(.+)\.html(#.*)?$ forums.php?rwr=m-posts__p-$1$2 [NC,NE,L]
    RewriteRule ^u-(.*)\.html(#.*)?$ users.php?rwr=m-details__id-$1$2 [NC,NE,L]
    # Main
    RewriteRule ^(chat|forums|index|list|message|page|pfs|plug|pm|polls|rss|users|view|captcha)__(.+)\.html(#.*)?$ $1.php?rwr=$2$3 [NC,NE,L]
    RewriteRule ^(chat|forums|index|list|message|page|pfs|plug|pm|polls|rss|users|view|captcha)\.html(#.*)?$ $1.php$2 [NC,NE,L]
    # Fixes
    RewriteRule ^.+/favicon.ico$ favicon.ico [NC,NE,L]
  • 05-02-2010, 11:17:15
    #6
    3. satırdaki
    RewriteEngine On
    bunun altına

    RewriteCond %{HTTP_HOST} !^www\.siteadresi\.com
    RewriteRule (.*) http://www.siteadresi.com/$1 [L,R=301]
    bunları ekle
  • 05-02-2010, 22:26:06
    #7
    Üyeliği durduruldu
    bende aynısını yaptım zaten ama olmadı