İpucu: Mobil Siteleri Unutmayın - Sayfa 6 - R10.net
  • 04-10-2010, 23:57:07
    #46
    mersinstyle adlı üyeden alıntı
    #redirect mobile browsers
    RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
    RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
    RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
    RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]

    mobile.yourdomain.com yerine m.googleandroid.gen.tr mi googleandroid.gen.tr mi yazayım

    Ben samsung telefonda giriyorum birde aşağıdaki kodumu ekleyeceğim ?

    RewriteCond %{HTTP_USER_AGENT} ^.*Samsung.*$
    RewriteRule ^(.*)$ http://mobile.yourdomain.com [R=301]
    Burası tamamda önce bir alttakini bir dene m.googleandroid.gen.tr
    alttakini deniyorsan yine çalışmazsa 2. satırı sil dahada çalışmazsa onun işi biter
  • 05-10-2010, 00:05:03
    #47
    Options -MultiViews +FollowSymlinks -Indexes
    
    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    #   MediaTemple, it is known to cause random Internal Server
    #   errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    	# Turn off mod_security filtering.
    	SecFilterEngine Off
    
    	# The below probably isn't needed, but better safe than sorry.
    	SecFilterScanPOST Off
    </IfModule>
    
    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    #   the setting enabled in the Admin CP and you have this file
    #   named .htaccess
    #
    <IfModule mod_rewrite.c>
    	RewriteEngine on
    	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
    	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
    
    	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
    	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
    	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
    	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
    	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
    	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
    	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
    
    	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
    
    	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
    
    	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
    
    	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
    
    	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
    
    	<IfModule mod_env.c>
    		SetEnv SEO_SUPPORT 1
    	</IfModule>
    </IfModule>
    
    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
    </IfModule>
    
    #redirect mobile browsers
    RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Samsung.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Htc.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Blackberry.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Brew.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Lg.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Nokia.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Symbian.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Sonyericsson.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Sanyo.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    RewriteCond %{HTTP_USER_AGENT} ^.*Mobile.*$
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    Options -MultiViews +FollowSymlinks -Indexes
    
    #
    # If mod_security is enabled, attempt to disable it.
    # - Note, this will work on the majority of hosts but on
    #   MediaTemple, it is known to cause random Internal Server
    #   errors. For MediaTemple, please remove the block below
    #
    <IfModule mod_security.c>
    	# Turn off mod_security filtering.
    	SecFilterEngine Off
    
    	# The below probably isn't needed, but better safe than sorry.
    	SecFilterScanPOST Off
    </IfModule>
    
    #
    # MyBB "search engine friendly" URL rewrites
    # - Note, for these to work with MyBB please make sure you have
    #   the setting enabled in the Admin CP and you have this file
    #   named .htaccess
    #
    <IfModule mod_rewrite.c>
    	RewriteEngine on
    	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
    	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
    
    	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
    	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
    	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
    	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
    	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
    	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
    	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
    
    	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
    
    	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
    
    	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
    
    	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
    	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
    
    	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
    
    	<IfModule mod_env.c>
    		SetEnv SEO_SUPPORT 1
    	</IfModule>
    </IfModule>
    
    #
    # If Apache is compiled with built in mod_deflade/GZIP support
    # then GZIP Javascript, CSS, HTML and XML so they're sent to
    # the client faster.
    #
    <IfModule mod_deflate.c>
    	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
    </IfModule>
    
    #HTACCESS MOBILE SITE REDIRECTION CODE
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} (mobile|android|blackberry|brew|htc|j2me|lg|midp|m ot|motorola|netfront|nokia|obigo|openweb|opera.min i|palm|psp|samsung|sanyo|sch|sonyericsson|symbian| symbos|teleca|up.browser|vodafone|wap|webos|window s.ce) 
    RewriteRule ^(.*)$ http://m.googleandroid.gen.tr [R=301]
    İkiside çalışmadı =(
    Contact : mail@erkan.ru // Erkan ARANCI // YerelNET
  • 05-10-2010, 00:11:51
    #48
    birde şöyle dene
    <? Php
    $ Iphone = strpos($ _SERVER ['HTTP_USER_AGENT'],"iPhone");
    $ Android = strpos($ _SERVER ['HTTP_USER_AGENT'],"Android");
    $ Palmpre = strpos($ _SERVER ['HTTP_USER_AGENT'],"WebOS");
    $ Ipod = strpos($ _SERVER ['HTTP_USER_AGENT'],"iPod");
    if ($ iphone | | $ android | | $ palmpre | | $ ipod == true) ( echo 'Mobil Kodu Goes Here'; )

    else ( echo 'Normal Kodu Goes Here'; )
    ?>
    goes here yazan yerler siteleri yaz mobil ve normal templete koy bakalım bu ara ben kaçar sana kolay gelsin
  • 05-10-2010, 00:14:43
    #49
    Oda çalışmadı =) neyse sağol kardeşim yinede başka fikri olan varmı ?
    Contact : mail@erkan.ru // Erkan ARANCI // YerelNET
  • 05-10-2010, 00:27:40
    #50
    asp için:
    if (Request.Headers["User-Agent"] != null && (Request.Browser["IsMobileDevice"] == "true" || Request.UserAgent.ToUpper().Contains("MIDP") || Request.UserAgent.ToUpper().Contains("CLDC") || Request.UserAgent.ToLower().Contains("iphone") || Request.UserAgent.ToLower().Contains("avant") || Request.UserAgent.ToLower().Contains("nokia") || Request.UserAgent.ToLower().Contains("pda") || Request.UserAgent.ToLower().Contains("moto") || Request.UserAgent.ToLower().Contains("windows ce") || Request.UserAgent.ToLower().Contains("hand") || Request.UserAgent.ToLower().Contains("mobi") || Request.UserAgent.ToUpper().Contains("HTC") || Request.UserAgent.ToLower().Contains("sony") || Request.UserAgent.ToLower().Contains("panasonic") || Request.UserAgent.ToLower().Contains("blackberry") || Request.UserAgent.ToLower().Contains("240x320") || Request.UserAgent.ToLower().Contains("voda")))

    {

    Response.Redirect("yourpage.aspx");

    }


    php için:
    <? if (
    stristr($ua, "Windows CE") or
    stristr($ua, "AvantGo") or
    stristr($ua,"Mazingo") or
    stristr($ua, "Mobile") or
    stristr($ua, "T68") or
    stristr($ua,"Syncalot") or
    stristr($ua, "Blazer") ) {
    $DEVICE_TYPE="MOBILE";
    }
    if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE") {
    $location='mobile/index.php';
    header ('Location: '.$location);
    exit;
    }
    ?>

    falan
    fakat çok fazla telefon user agenti olduğu için hepsnin bulunduğu bi liste bulup düzgün ve uzuncana bir kontrol hazırlamak lazım..
  • 05-10-2010, 01:23:08
    #51
    vBulletin olsaydı mobile sürüme geçirme işlemini yapmana yardım edebilirdim.. Bende kullanıyorum telefondan girenler direk mobil sürüme geçiş yapıyor. Mybb için bir yol bulursam yardımcı olurum, şimdi yatacağım yarın detaylı bakarım.
    Reklam alanı.
  • 05-10-2010, 01:35:24
    #52
    uykusuzum bir yerlerde yanlış yaptık sabaha kadar çözemezsen yarın devam ederiz, mobil sitenin temletinin tam adresi neyse birde onu yazarak dene htaccesste eğer mobil domaini A ile yönlendirdiysen, haydi iyi geceler
  • 05-10-2010, 06:04:13
    #53
    Mobil eklentilerin veya tasarımların şuanda çok zayıf olduğunu düşünüyorum. Tabiki işin piriysen güzel şeyler çıkarılabilir.
    Ekranların genişlemesiyle birlikte mobil internet wap ın kısır dünyasından web e doğru kaydı. Ancak kullanım zorlukları var sanırım bu zorluğu aşmayı başardığı için iphone internet kullanımında çok iyi.
    hdbelgesel.com domain 500 TL
  • 05-10-2010, 06:08:55
    #54
    wp siteleri mobile çevirme hizmeti veriyorsan görüşmek isterim.
    Az Laf Çok İş