Deploying my first mobile site: 3 questions for newbies

I created a mobile version of my website, which is a one-page webapp. I work with the php server side and js + jquery on the front panel.

  • How can I automatically redirect mobile browsers to a mobile web application in a search-transparent way for search engines?

  • Should I only allow mobile bots on a mobile site? (with robots.txt)

  • Does the web application need to indicate pure duplicate content from the actual site?

+3
source share
3 answers

PHP php-mobile-detect "(" mobileesp", ), , . SESSION , , .

Smarty , SESSION.

, , , , , URL-, ( ) , / , .

, , Google .., , .

+2

- , ?

. serveride script.
Google -:

? ( robots.txt)

, . DocType , , . (Robots.txt )

- Central: google index your mobile site

, - - ?

, - -. , . , " ", " " (. )

: Google -

+2

You must use 301 redirects from each page to the corresponding page for mobile devices. I'm not sure about the other two questions, maybe someone else can give a better answer.

0
source

Source: https://habr.com/ru/post/1761118/


All Articles