• 22-05-2015, 16:47:59
    #1
    Merhaba arkadaşlar Normalde mobilden girildiği zaman siteyi alt kısımdaki kodlar sayesinde mobil siteye yönlendiriyorum.

    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|oper a mobile|palmos|webos|googlebot-mobile" [NC]
    RewriteRule ^(.*)$ http://m.siteadi.com.tr%{REQUEST_URI} [L,R=302]

    SİZE SORMAK İSTEDİĞİM SORU

    mobil site uzantıları normal bilgisayar ortamında da indexlediğinden

    http://m.siteadi.com.tr/urun sayfasında bilgisayardan girildiğinde
    http://siteadi.com/urun adresinin açması

    Fikri olan
  • 22-05-2015, 17:01:47
    #2
    http://stackoverflow.com/questions/1...-with-htaccess

    RewriteCond %{HTTP_HOST} ^m\. [NC]
    RewriteCond %{HTTP_USER_AGENT} !(android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera\smobile|palmos|w ebos) [NC]
    RewriteRule ^ http://website.com%{REQUEST_URI} [L,R=302]
  • 22-05-2015, 19:50:22
    #3
    yvolkan adlı üyeden alıntı: mesajı görüntüle
    http://stackoverflow.com/questions/1...-with-htaccess

    RewriteCond %{HTTP_HOST} ^m\. [NC]
    RewriteCond %{HTTP_USER_AGENT} !(android|blackberry|googlebot-mobile|iemobile|iphone|ipod|opera\smobile|palmos|w ebos) [NC]
    RewriteRule ^ http://website.com%{REQUEST_URI} [L,R=302]
    Hocam dediğiniz gibi sub domain mobil htaccese bu kodları yazdım ve yazma izni verdim ama alt kısımdaki sorunu veriyor

    Not Found

    The requested document was not found on this server.
    Web Server at @domain_name@

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.

    Web Server at @domain_name@