开发者

deploying my first mobile site : 3 newbie questions

I have created a mobile version of a my website which is a one-page webapp. I'm working with php server side and js+jquery on the fron开发者_开发知识库t end.

  1. how can i auto-redirect mobile browsers to the mobile web-app in a way that's transparent to search engines?

  2. should i allow only mobile bots on the mobile site? (with robots.txt)

  3. do i need to flag that the web-app is pure duplicated content from the actual site?


I use the PHP Class "php-mobile-detect" (or "mobileesp", which I have not used personally) to determine whether the site is being accessed from a mobile device or not. I also tend to set a SESSION variable to record the result of that test, so I am not retesting every time the user loads a page.

Personally, I also find Smarty a handy tool here, as I use it to load different templates, based on the value in the above SESSION variable.

What this then means is that, regardless of device, users visit the same URLs, interact in the same (or very similar) fashions and receive outputs best suited/styled to the device they are accessing from.

This would also mean that any risks associated with Google detecting duplicate content, etc. would be avoided, as, when the spider visits, it will just see the desktop version of your site, and index that.


how can I auto-redirect mobile browsers to the mobile web-app in a way that's transparent to search engines?

Redirecting is already explained by other users. Redirection should be done with a serverside script.
Very interesting reading on this topic on the Offical Google Webmaster Blog: Running desktop and mobile versions of your site

should i allow only mobile bots on the mobile site? (with robots.txt)

No, allow everyone. Your DocType should be different on your mobile pages, so crawlers know you are talking about a mobile site. (Robots.txt is about exclusion not about inclusion)

You can verify this on Webmaster Central blog: Help google index your mobile site

do i need to flag that the web-app is pure duplicated content from the actual site?

No, Mobile sites are another kind of website. It's another device, so no issues with duplicate content here. But pay attention that redirection takes place from and to the "same content", other wise you might be "unintentionally cloaking" (see first link)

A last tip: check out Developing mobile sites on google Webmaster Tools


You should use a 301 redirect from each page to the corresponding mobile page. I'm not sure about the other two questions, maybe someone else can provide a better answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜