GauravGD
GauravGD

Reputation: 45

According to google my desktop site is not mobile friendly

I have desktop view(test.com) and mobile view(m.test.com) site. I am redirecting to mobile view through codeigniter constructor .

public function __construct(){
    parent::__construct();
    $this->load->library('user_agent');

    if ($this->agent->is_browser())
    {
        if($this->agent->mobile()){
            $url = $_SERVER['REQUEST_URI'];
            header('Location: http://m.test.com'.$url); 
        }
    }
}

and it was working fine. also included annotations in my site main layout file.

IN desktop link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.test.com/"

IN mobile link rel="canonical" href="http://www.test.com/"

but google still showing that my site is not mobile friendly.

Please help me out.

Upvotes: 0

Views: 214

Answers (1)

Robominister
Robominister

Reputation: 146

From looking at your site as it currently is, it is not mobile friendly. It seems to miss several of the following criteria:

A page is eligible for the “mobile-friendly” label if it meets the following criteria as detected by Googlebot: Avoids software that is not common on mobile devices, like Flash Uses text that is readable without zooming Sizes content to the screen so users don't have to scroll horizontally or zoom Places links far enough apart so that the correct one can be easily tapped

Source: http://googlewebmastercentral.blogspot.co.uk/2014/11/helping-users-find-mobile-friendly-pages.html

I'v tried it on IE on my Noke phone. It just looks like a desktop site.

Upvotes: 0

Related Questions